You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ios/CashuWallet/Core/CashuRequestListener.swift
+33-12Lines changed: 33 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,9 @@ final class CashuRequestListener: ObservableObject {
75
75
self.client = client
76
76
await client.start()
77
77
isRunning =true
78
-
AppLogger.wallet.notice("CashuRequestListener: started on \(relays.count) relays, pubkey=\(String(pubkeyHex.prefix(8)), privacy:.public), since=\(since)")
78
+
AppLogger.wallet.notice(
79
+
"CashuRequestListener: started relays=\(relays.count, privacy:.public) pubkey=\(WalletOperationCoordinator.privacySafeIdentifier(pubkeyHex), privacy:.public) since=\(since, privacy:.public)"
80
+
)
79
81
}
80
82
81
83
func stop()async{
@@ -104,15 +106,19 @@ final class CashuRequestListener: ObservableObject {
AppLogger.wallet.notice("CashuRequestListener: gift wrap received id=\(String(event.id.prefix(8)), privacy:.public) createdAt=\(event.createdAt)")
109
+
AppLogger.wallet.notice(
110
+
"CashuRequestListener: gift wrap received event=\(WalletOperationCoordinator.privacySafeIdentifier(event.id), privacy:.public) created_at=\(event.createdAt, privacy:.public)"
@@ -254,7 +265,9 @@ final class CashuRequestListener: ObservableObject {
254
265
)
255
266
walletManager.savePendingReceiveToken(pending)
256
267
heldForApproval = pending
257
-
AppLogger.wallet.notice("CashuRequestListener: payment from \(mintUrl, privacy:.public) held for approval (\(reason, privacy:.public))")
268
+
AppLogger.wallet.notice(
269
+
"CashuRequestListener: payment held for approval resource=\(WalletOperationCoordinator.privacySafeIdentifier(mintUrl), privacy:.public) reason=\(reason, privacy:.public)"
270
+
)
258
271
Task{await walletManager.loadTransactions()}
259
272
return.held
260
273
}
@@ -268,7 +281,9 @@ final class CashuRequestListener: ObservableObject {
0 commit comments