gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

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