gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 03/11: Logger


From: gnunet
Subject: [taler-taler-ios] 03/11: Logger
Date: Tue, 24 Oct 2023 22:45:19 +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 cc6b3bcfb112104bbff0b83ad12ff761f9fa21cf
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Oct 23 23:17:27 2023 +0200

    Logger
---
 TalerWallet1/Backend/WalletCore.swift          |  2 +-
 TalerWallet1/Controllers/Controller.swift      |  2 +-
 TalerWallet1/Controllers/DebugViewC.swift      |  2 +-
 TalerWallet1/Controllers/TalerWallet1App.swift |  4 ++--
 TalerWallet1/Model/Model+Transactions.swift    | 10 +++++-----
 TalerWallet1/Model/WalletModel.swift           |  2 +-
 TalerWallet1/Views/Sheets/Sheet.swift          |  2 +-
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index a3b8dbb..9886363 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -30,7 +30,7 @@ class WalletCore: QuickjsMessageHandler {
 
     var versionInfo: VersionInfo?           // shown in SettingsView
     var developDelay: Bool?                 // if set in SettingsView will 
delay wallet-core after each action
-    let logger = Logger (subsystem: "net.taler.gnu", category: "wallet-core")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "WalletCore")
 
     private struct FullRequest: Encodable {
         let operation: String
diff --git a/TalerWallet1/Controllers/Controller.swift 
b/TalerWallet1/Controllers/Controller.swift
index 33169ee..788438c 100644
--- a/TalerWallet1/Controllers/Controller.swift
+++ b/TalerWallet1/Controllers/Controller.swift
@@ -38,7 +38,7 @@ class Controller: ObservableObject {
     @AppStorage("playSounds") var playSounds: Int = 0       // extension 
mustn't define this, so it must be here
     @AppStorage("talerFont") var talerFont: Int = 0         // extension 
mustn't define this, so it must be here
     let hapticCapability = CHHapticEngine.capabilitiesForHardware()
-    let logger = Logger (subsystem: "net.taler.gnu", category: "Controller")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "Controller")
     let player = AVQueuePlayer()
     let semaphore = AsyncSemaphore(value: 1)
 
diff --git a/TalerWallet1/Controllers/DebugViewC.swift 
b/TalerWallet1/Controllers/DebugViewC.swift
index 990f53a..bf73067 100644
--- a/TalerWallet1/Controllers/DebugViewC.swift
+++ b/TalerWallet1/Controllers/DebugViewC.swift
@@ -142,7 +142,7 @@ class DebugViewC: ObservableObject {
 #else
     @AppStorage("developerMode") var developerMode: Bool = false
 #endif
-    let logger = Logger (subsystem: "net.taler.gnu", category: "DebugView")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "DebugView")
 
     @Published var viewID: Int = 0
     @Published var sheetID: Int = 0
diff --git a/TalerWallet1/Controllers/TalerWallet1App.swift 
b/TalerWallet1/Controllers/TalerWallet1App.swift
index 4adf008..7f7fa50 100644
--- a/TalerWallet1/Controllers/TalerWallet1App.swift
+++ b/TalerWallet1/Controllers/TalerWallet1App.swift
@@ -26,7 +26,7 @@ struct TalerWallet1App: App {
     private let controller = Controller.shared
     private let model = WalletModel.shared
     private let debugViewC = DebugViewC.shared
-    let logger = Logger (subsystem: "net.taler.gnu", category: "Main App")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "Main App")
     let sqlite3 = true                                                         
 // true = SQLITE3, false = JSON
 
     func scheduleAppRefresh() {
@@ -103,7 +103,7 @@ struct TalerWallet1App: App {
 final class ViewState : ObservableObject {
     static let shared = ViewState()
     @Published var rootViewId = UUID()
-    let logger = Logger (subsystem: "net.taler.gnu", category: "ViewState")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "ViewState")
 
     public func popToRootView() -> Void {
         logger.info("popToRootView")
diff --git a/TalerWallet1/Model/Model+Transactions.swift 
b/TalerWallet1/Model/Model+Transactions.swift
index 2e59bfb..6c3869d 100644
--- a/TalerWallet1/Model/Model+Transactions.swift
+++ b/TalerWallet1/Model/Model+Transactions.swift
@@ -129,32 +129,32 @@ extension WalletModel {
     /// abort the specified transaction from Wallet-Core. No networking 
involved
     func abortTransaction(transactionId: String) async throws {
         let request = AbortTransaction(transactionId: transactionId)
-        logger.info("abortTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
+        logger.notice("abortTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
         let _ = try await sendRequest(request, ASYNCDELAY)
     }
 
     /// delete the specified transaction from Wallet-Core. No networking 
involved
     func deleteTransaction(transactionId: String) async throws {
         let request = DeleteTransaction(transactionId: transactionId)
-        logger.info("deleteTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
+        logger.notice("deleteTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
         let _ = try await sendRequest(request, ASYNCDELAY)
     }
 
     func failTransaction(transactionId: String) async throws {
         let request = FailTransaction(transactionId: transactionId)
-        logger.info("failTransaction: \(transactionId, privacy: .private(mask: 
.hash))")
+        logger.notice("failTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
         let _ = try await sendRequest(request, ASYNCDELAY)
     }
 
     func suspendTransaction(transactionId: String) async throws {
         let request = SuspendTransaction(transactionId: transactionId)
-        logger.info("suspendTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
+        logger.notice("suspendTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
         let _ = try await sendRequest(request, ASYNCDELAY)
     }
 
     func resumeTransaction(transactionId: String) async throws {
         let request = ResumeTransaction(transactionId: transactionId)
-        logger.info("resumeTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
+        logger.notice("resumeTransaction: \(transactionId, privacy: 
.private(mask: .hash))")
         let _ = try await sendRequest(request, ASYNCDELAY)
     }
 }
diff --git a/TalerWallet1/Model/WalletModel.swift 
b/TalerWallet1/Model/WalletModel.swift
index 070e41c..993a67c 100644
--- a/TalerWallet1/Model/WalletModel.swift
+++ b/TalerWallet1/Model/WalletModel.swift
@@ -24,7 +24,7 @@ struct HTTPError: Codable, Hashable {
 class WalletModel: ObservableObject {
     public static let shared = WalletModel()
     static func className() -> String {"\(self)"}
-    let logger = Logger (subsystem: "net.taler.gnu", category: "WalletModel")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "WalletModel")
     let semaphore = AsyncSemaphore(value: 1)
     var cachedBalances: [Balance]? = nil
 
diff --git a/TalerWallet1/Views/Sheets/Sheet.swift 
b/TalerWallet1/Views/Sheets/Sheet.swift
index 1daa1e6..b1f0cda 100644
--- a/TalerWallet1/Views/Sheets/Sheet.swift
+++ b/TalerWallet1/Views/Sheets/Sheet.swift
@@ -14,7 +14,7 @@ struct Sheet: View {
 
     var sheetView: AnyView
 
-    let logger = Logger (subsystem: "net.taler.gnu", category: "Sheet")
+    let logger = Logger(subsystem: "net.taler.gnu", category: "Sheet")
 
     var cancelButton: some View {
         Button("Cancel") {

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