Page MenuHomePhabricator

D13455.id44572.diff
No OneTemporary

D13455.id44572.diff

diff --git a/services/tunnelbroker/src/notifs/fcm/mod.rs b/services/tunnelbroker/src/notifs/fcm/mod.rs
--- a/services/tunnelbroker/src/notifs/fcm/mod.rs
+++ b/services/tunnelbroker/src/notifs/fcm/mod.rs
@@ -1,3 +1,4 @@
+use crate::constants::error_types;
use crate::constants::PUSH_SERVICE_REQUEST_TIMEOUT;
use crate::notifs::fcm::config::FCMConfig;
use crate::notifs::fcm::error::Error::FCMError;
@@ -80,8 +81,11 @@
.await
.unwrap_or_else(|error| format!("Error occurred: {}", error));
error!(
+ errorType = error_types::FCM_ERROR,
"Failed sending FCM notification to: {}. Status: {}. Body: {}",
- token, error_status, body
+ token,
+ error_status,
+ body
);
let fcm_error = FCMErrorResponse::from_status(error_status, body);
Err(FCMError(fcm_error))
diff --git a/services/tunnelbroker/src/notifs/wns/mod.rs b/services/tunnelbroker/src/notifs/wns/mod.rs
--- a/services/tunnelbroker/src/notifs/wns/mod.rs
+++ b/services/tunnelbroker/src/notifs/wns/mod.rs
@@ -70,6 +70,7 @@
.await
.unwrap_or_else(|error| format!("Error occurred: {}", error));
tracing::error!(
+ errorType = error_types::WNS_ERROR,
"Failed sending WNS notification to: {}. Status: {}. Body: {}",
&url,
error_status,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 2:36 PM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694348
Default Alt Text
D13455.id44572.diff (1 KB)

Event Timeline