[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.
- [taler-taler-ios] 17/36: amountToTransfer Balances, (continued)
- [taler-taler-ios] 17/36: amountToTransfer Balances, gnunet, 2023/11/13
- [taler-taler-ios] 09/36: cleanup, zero, gnunet, 2023/11/13
- [taler-taler-ios] 29/36: less logging, gnunet, 2023/11/13
- [taler-taler-ios] 13/36: once at very first startup, gnunet, 2023/11/13
- [taler-taler-ios] 15/36: About with explicit link to taler.net, gnunet, 2023/11/13
- [taler-taler-ios] 28/36: Cleanup property wrappers, gnunet, 2023/11/13
- [taler-taler-ios] 22/36: amountToTransfer ManualWithdraw, gnunet, 2023/11/13
- [taler-taler-ios] 33/36: Announce shouldn't change screen, gnunet, 2023/11/13
- [taler-taler-ios] 34/36: Previews, gnunet, 2023/11/13
- [taler-taler-ios] 32/36: Shortcuts (50,25,10,5), gnunet, 2023/11/13
- [taler-taler-ios] 11/36: Debugging,
gnunet <=
- [taler-taler-ios] 25/36: amountToTransfer Currency, gnunet, 2023/11/13
- [taler-taler-ios] 16/36: TransactionsArraySliceV, gnunet, 2023/11/13
- [taler-taler-ios] 20/36: amountToTransfer Request, gnunet, 2023/11/13
- [taler-taler-ios] 26/36: Minimalistic, gnunet, 2023/11/13
- [taler-taler-ios] 31/36: Use `te´and `ku´ for previews, gnunet, 2023/11/13
- [taler-taler-ios] 10/36: @Published currencyTicker, gnunet, 2023/11/13
- [taler-taler-ios] 35/36: Check Available, accessibility, gnunet, 2023/11/13
- [taler-taler-ios] 36/36: Bump version to 0.9.3 (25), gnunet, 2023/11/13
- [taler-taler-ios] 08/36: Cleanup, gnunet, 2023/11/13