[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 37/204: debugging
From: |
gnunet |
Subject: |
[taler-taler-ios] 37/204: debugging |
Date: |
Thu, 05 Dec 2024 23:50:05 +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 11398cc4d142c99cbee6e31f0bf9d52447714156
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sat Oct 12 08:31:26 2024 +0200
debugging
---
TalerWallet1/Backend/WalletCore.swift | 9 ++++++---
TalerWallet1/Views/Actions/ActionsSheet.swift | 1 +
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift
b/TalerWallet1/Backend/WalletCore.swift
index 08ec07e..1922a34 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -145,7 +145,7 @@ extension WalletCore {
}
do {
let jsonData = try JSONEncoder().encode(result)
- symLog.log("\"id\":\(requestId) \(result)")
+// symLog.log("\"id\":\(requestId) \(result)")
// logger.info(result) TODO: log result
completion(requestId, timeSent, jsonData, nil)
} catch { // JSON encoding of response.result failed / should
never happen
@@ -411,16 +411,19 @@ print("\n❗️ WalletCore.swift:343 NEW Notification: ",
anyPayload, "\n")
let decoded = try
JSONDecoder().decode(ResponseOrNotification.self, from: messageData)
switch decoded.type {
case "error":
+ symLog.log("\"id\":\(decoded.id ?? 0) \(message)")
try handleError(decoded)
case "response":
+ symLog.log("\"id\":\(decoded.id ?? 0) \(message)")
try handleResponse(decoded)
case "notification":
+// symLog.log(message)
try handleNotification(decoded.payload)
case "tunnelHttp": // TODO: Handle tunnelHttp
- symLog.log("Can't handle tunnelHttp: \(decoded)") //
TODO: .error
+ symLog.log("Can't handle tunnelHttp: \(message)") //
TODO: .error
throw WalletBackendError.deserializationError
default:
- symLog.log("Unknown response type: \(decoded)") //
TODO: .error
+ symLog.log("Unknown response type: \(message)") //
TODO: .error
throw WalletBackendError.deserializationError
}
} catch DecodingError.dataCorrupted(let context) {
diff --git a/TalerWallet1/Views/Actions/ActionsSheet.swift
b/TalerWallet1/Views/Actions/ActionsSheet.swift
index 450ac06..a6cf0de 100644
--- a/TalerWallet1/Views/Actions/ActionsSheet.swift
+++ b/TalerWallet1/Views/Actions/ActionsSheet.swift
@@ -6,6 +6,7 @@
* @author Marc Stibane
*/
import SwiftUI
+import os.log
import taler_swift
/// This view shows the action sheet
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 24/204: @State ScopeInfo.zero, (continued)
- [taler-taler-ios] 24/204: @State ScopeInfo.zero, gnunet, 2024/12/05
- [taler-taler-ios] 15/204: GetMaxPeerPushDebitAmount, gnunet, 2024/12/05
- [taler-taler-ios] 17/204: "Transactions" -> currency, gnunet, 2024/12/05
- [taler-taler-ios] 23/204: KeyboardShowingEnvironment, gnunet, 2024/12/05
- [taler-taler-ios] 20/204: Balances uses ScopePicker, Transactions uses static text, gnunet, 2024/12/05
- [taler-taler-ios] 19/204: cleanup, debug, gnunet, 2024/12/05
- [taler-taler-ios] 21/204: SendAmountV, gnunet, 2024/12/05
- [taler-taler-ios] 31/204: a11y, gnunet, 2024/12/05
- [taler-taler-ios] 33/204: BarGraph 15, trust GetTransactionsV2, gnunet, 2024/12/05
- [taler-taler-ios] 32/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 37/204: debugging,
gnunet <=
- [taler-taler-ios] 44/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 50/204: amountLastUsed, gnunet, 2024/12/05
- [taler-taler-ios] 18/204: Unsuccessfull trial to fix TX-Detailview jump onAppear, gnunet, 2024/12/05
- [taler-taler-ios] 26/204: hide TabBarView, gnunet, 2024/12/05
- [taler-taler-ios] 40/204: EMPTYSTRING, gnunet, 2024/12/05
- [taler-taler-ios] 30/204: QrButton in Actions, gnunet, 2024/12/05
- [taler-taler-ios] 43/204: no Cancel for sheets, gnunet, 2024/12/05
- [taler-taler-ios] 51/204: scope, gnunet, 2024/12/05
- [taler-taler-ios] 45/204: pull-to-refresh haptics, gnunet, 2024/12/05
- [taler-taler-ios] 47/204: RotatingTaler for demo money, gnunet, 2024/12/05