gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 33/54: log only release builds


From: gnunet
Subject: [taler-taler-ios] 33/54: log only release builds
Date: Fri, 30 Jun 2023 22:34:05 +0200

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 f309f9c86d7dd928ebe485bd879be5c9204d2ecd
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Jun 27 22:30:17 2023 +0200

    log only release builds
---
 TalerWallet1/Model/WalletModel.swift | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/TalerWallet1/Model/WalletModel.swift 
b/TalerWallet1/Model/WalletModel.swift
index 525bf11..1b56aa2 100644
--- a/TalerWallet1/Model/WalletModel.swift
+++ b/TalerWallet1/Model/WalletModel.swift
@@ -19,12 +19,16 @@ class WalletModel: ObservableObject {
 
     func sendRequest<T: WalletBackendFormattedRequest> (_ request: T, _ delay: 
UInt = 0)
       async throws -> T.Response {    // T for any Thread
+#if !DEBUG
         logger.log("sending: \(request.operation(), privacy: .public)")
+#endif
         let sendTime = Date.now
         do {
             let (response, id) = try await 
WalletCore.shared.sendFormattedRequest(request: request)
+#if !DEBUG
             let timeUsed = Date.now - sendTime
             logger.log("received: \(request.operation(), privacy: .public) 
(\(id, privacy: .public)) after \(timeUsed.milliseconds, privacy: .public) ms")
+#endif
             let asyncDelay: UInt = delay > 0 ? delay : UInt(ASYNCDELAY)
             if asyncDelay > 0 {     // test LoadingView, sleep some seconds
                 try? await Task.sleep(nanoseconds: 1_000_000_000 * 
UInt64(asyncDelay))

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