commit e46e4342d4e20a4e0ea1e79acb095ced04885639
parent dc8b8881305e226c2b608af4ab979fd569c0c4ff
Author: Marc Stibane <marc@taler.net>
Date: Tue, 19 Sep 2023 01:59:29 +0200
simplify log
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift
@@ -152,7 +152,6 @@ extension WalletCore {
object anObject: Any? = nil,
userInfo: [AnyHashable: Any]? = nil) {
Task { // runs on MainActor
- if let userInfo { symLog.log(userInfo) } else { symLog.log(aName) }
await postNotificationM(aName, object: anObject, userInfo: userInfo)
logger.log("Notification sent: \(aName.rawValue)")
}
@@ -214,12 +213,15 @@ extension WalletCore {
switch payload.type {
case Notification.Name.TransactionStateTransition.rawValue:
+ symLog.log(anyPayload)
try handleStateTransition(jsonData)
case Notification.Name.PendingOperationProcessed.rawValue:
try handlePendingProcessed(payload)
case Notification.Name.BalanceChange.rawValue:
+ symLog.log(anyPayload)
postNotification(.BalanceChange)
case Notification.Name.ExchangeAdded.rawValue:
+ symLog.log(anyPayload)
postNotification(.ExchangeAdded)
case Notification.Name.ReserveNotYetFound.rawValue:
if let reservePub = payload.reservePub {