gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 11/36: Debugging


From: gnunet
Subject: [taler-taler-ios] 11/36: Debugging
Date: Mon, 13 Nov 2023 21:27:16 +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 2b0249b5aa353c8a58e34f7abc35edc8d1abfbaa
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Nov 12 12:20:49 2023 +0100

    Debugging
---
 TalerWallet1/Views/Balances/BalancesSectionView.swift |  4 ++--
 TalerWallet1/Views/Main/MainView.swift                | 14 ++++++--------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift 
b/TalerWallet1/Views/Balances/BalancesSectionView.swift
index 3f1fe13..065e24b 100644
--- a/TalerWallet1/Views/Balances/BalancesSectionView.swift
+++ b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -147,9 +147,9 @@ extension BalancesSectionView: View {
 //                        .foregroundColor(moreContrast ? .primary : 
.secondary)
                 }
             }
-        }
+        } // recent transactions
     } // body
-} // extension BalancesSectionView
+} // BalancesSectionView
 
 fileprivate struct BalancesPendingRowView: View {
     let symLog: SymLogV?
diff --git a/TalerWallet1/Views/Main/MainView.swift 
b/TalerWallet1/Views/Main/MainView.swift
index b16ed8e..737ee7f 100644
--- a/TalerWallet1/Views/Main/MainView.swift
+++ b/TalerWallet1/Views/Main/MainView.swift
@@ -27,7 +27,7 @@ struct MainView: View {
     @AppStorage("playSounds") var playSounds: Int = 1       // extension 
mustn't define this, so it must be here
 
     func sheetDismissed() -> Void {
-        symLog.log("sheet dismiss")
+        logger.info("sheet dismiss")
     }
     var body: some View {
 #if DEBUG
@@ -36,7 +36,7 @@ struct MainView: View {
 #endif
         Group {
             if controller.backendState == .ready {
-                Content(symLog: symLog, logger: logger, stack: 
stack.push("Content"), talerFont: $talerFont)
+                Content(logger: logger, stack: stack.push("Content"), 
talerFont: $talerFont)
                 // any change to rootViewId triggers popToRootView behaviour
                     .id(viewState.rootViewId)
                     .onAppear() {
@@ -78,7 +78,6 @@ enum Tab {
 // MARK: - Content
 extension MainView {
     struct Content: View {
-        let symLog: SymLogV?
         let logger: Logger
         let stack: CallStack
         @State private var shouldReloadBalances = 0
@@ -167,7 +166,6 @@ extension MainView {
 //            } else {
                 let _ = Self._printChanges()
 //            }
-            let _ = symLog?.vlog()       // just to get the identity # to 
compare with .onAppear & .onDisappear
 #endif
           Group {
 #if TABBAR  // Taler Wallet
@@ -252,7 +250,6 @@ extension MainView {
                     }
                 } else { // should never happen
                     logger.error("Yikes! TransactionStateTransition without 
transition")
-//                    symLog.log(notification.userInfo as Any)
                 }
             }
             .alert("You need to pass a KYC procedure",
@@ -268,15 +265,16 @@ extension MainView {
             .onChange(of: balances) { newArray in
                 for balance in newArray {
                     let scope = balance.scopeInfo
+                    logger.info("balance changed: \(scope.currency, privacy: 
.public)")
                     if !controller.hasInfo(for: scope.currency) {
                         Task { // runs on MainActor
-                            symLog?.log("get info for: \(scope.currency)")
+                            logger.info("Task to get info for: 
\(scope.currency, privacy: .public)")
                             do {
                                 let info = try await 
model.getCurrencyInfo(scope: scope)
-                                symLog?.log("added: \(scope.currency)")
+                                logger.info("got info: \(scope.currency, 
privacy: .public)")
                                 await controller.setInfo(info)
                             } catch {    // TODO: error handling - couldn't 
get CurrencyInfo
-                                symLog?.log("error: \(error)")
+                                logger.error("Couldn't get info for: 
\(scope.currency, privacy: .public)\n\(error)")
                             }
                         }
                     }

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