gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 29/36: less logging


From: gnunet
Subject: [taler-taler-ios] 29/36: less logging
Date: Mon, 13 Nov 2023 21:27:34 +0100

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 b6575a3beced72c6d4dc474708186940d4a468d7
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Nov 13 11:58:02 2023 +0100

    less logging
---
 TalerWallet1/Backend/WalletCore.swift          | 6 +++---
 TalerWallet1/Controllers/TalerWallet1App.swift | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 3a02aaf..350f194 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -190,7 +190,7 @@ extension WalletCore {
                     if let type = TransactionType(rawValue: components[1]) {
                         guard type != .refresh else { return }
                         if decoded.newTxState.major == .done {
-                            logger.log("Done: \(decoded.transactionId, 
privacy: .private(mask: .hash))")
+                            logger.info("Done: \(decoded.transactionId, 
privacy: .private(mask: .hash))")
                             Controller.shared.playSound(type.isIncoming ? 2 : 
1)
                         } else if decoded.newTxState.major == .expired {
                             logger.log("Expired: \(decoded.transactionId, 
privacy: .private(mask: .hash))")
@@ -202,7 +202,7 @@ extension WalletCore {
                 }
             } else {
                 // TODO: Same state usually means that an error is transmitted
-                logger.log("No State change: \(decoded.transactionId, privacy: 
.private(mask: .hash))")
+                logger.info("No State change: \(decoded.transactionId, 
privacy: .private(mask: .hash))")
             }
         } catch {       // rethrows
             symLog.log(jsonData)       // TODO: .error
@@ -339,7 +339,7 @@ extension WalletCore {
             sendRequest(request: reqData) { requestId, timeSent, result, error 
in
                 let timeUsed = Date.now - timeSent
                 let millisecs = timeUsed.milliseconds
-                self.logger.log("Request \(requestId) took \(millisecs) ms")
+                self.logger.info("Request \(requestId) took \(millisecs) ms")
                 var err: Error? = nil
                 if let json = result {
                     do {
diff --git a/TalerWallet1/Controllers/TalerWallet1App.swift 
b/TalerWallet1/Controllers/TalerWallet1App.swift
index 9efb5be..043d646 100644
--- a/TalerWallet1/Controllers/TalerWallet1App.swift
+++ b/TalerWallet1/Controllers/TalerWallet1App.swift
@@ -22,7 +22,6 @@ struct TalerWallet1App: App {
     @State private var soundPlayed = false
 
     private let walletCore = WalletCore.shared
-    // our main controller
     private let controller = Controller.shared
     private let model = WalletModel.shared
     private let debugViewC = DebugViewC.shared

-- 
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]