gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 27/28: simplify log


From: gnunet
Subject: [taler-taler-ios] 27/28: simplify log
Date: Tue, 19 Sep 2023 03:44:46 +0200

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit e46e4342d4e20a4e0ea1e79acb095ced04885639
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Sep 19 01:59:29 2023 +0200

    simplify log
---
 TalerWallet1/Backend/WalletCore.swift | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 74eec52..a3b8dbb 100644
--- 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 {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]