gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 02/03: Log observability events


From: gnunet
Subject: [taler-taler-ios] 02/03: Log observability events
Date: Fri, 12 Apr 2024 23:35:27 +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 66f8b9585e1743d8f764dccd1b77c4f095c5d354
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Fri Apr 12 14:22:18 2024 -0600

    Log observability events
---
 TalerWallet1/Backend/WalletCore.swift          | 10 ++++++++++
 TalerWallet1/Controllers/PublicConstants.swift |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 47df531..f2b4f86 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -301,6 +301,16 @@ extension WalletCore {
                 case Notification.Name.ProposalDownloaded.rawValue:            
 // "proposal-downloaded":
                     symLog.log(anyPayload)
                     postNotification(.ProposalDownloaded, userInfo: nil)
+                case Notification.Name.TaskObservabilityEvent.rawValue:
+                    symLog.log(anyPayload)
+                    if let json = anyPayload.toJSON() {
+                        observe(message: json)
+                    }
+                case Notification.Name.RequestObservabilityEvent.rawValue:
+                    symLog.log(anyPayload)
+                    if let json = anyPayload.toJSON() {
+                        observe(message: json)
+                    }
 
                     // TODO: remove these once wallet-core doesn't send them 
anymore
 //                case "refresh-started", "refresh-melted",
diff --git a/TalerWallet1/Controllers/PublicConstants.swift 
b/TalerWallet1/Controllers/PublicConstants.swift
index 5b563d0..9515947 100644
--- a/TalerWallet1/Controllers/PublicConstants.swift
+++ b/TalerWallet1/Controllers/PublicConstants.swift
@@ -81,6 +81,8 @@ extension Notification.Name {
 //    static let PayOperationSuccess = 
Notification.Name("pay-operation-success")
     static let ProposalAccepted = Notification.Name("proposal-accepted")
     static let ProposalDownloaded = Notification.Name("proposal-downloaded")
+    static let TaskObservabilityEvent = 
Notification.Name("task-observability-event")
+    static let RequestObservabilityEvent = 
Notification.Name("request-observability-event")
     static let Error = Notification.Name("error")
 }
 

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