Page MenuHomePhabricator

D13430.diff
No OneTemporary

D13430.diff

diff --git a/lib/push/crypto.js b/lib/push/crypto.js
--- a/lib/push/crypto.js
+++ b/lib/push/crypto.js
@@ -85,7 +85,7 @@
encryptionOrder,
};
} catch (e) {
- console.log('Notification encryption failed: ' + e);
+ console.log('Notification encryption failed', e);
const resultPayload = {
encryptionFailed: '1',
...unencryptedPayload,
@@ -189,7 +189,7 @@
encryptionOrder,
};
} catch (e) {
- console.log('Notification encryption failed: ' + e);
+ console.log('Notification encryption failed', e);
const unencryptedNotification = { ...notification, encryptionFailed: '1' };
return {
notification: unencryptedNotification,
@@ -259,7 +259,7 @@
encryptionOrder,
};
} catch (e) {
- console.log('Notification encryption failed: ' + e);
+ console.log('Notification encryption failed', e);
const unencryptedNotification = { ...notification, encryptionFailed: '1' };
return {
notification: unencryptedNotification,
@@ -396,7 +396,7 @@
encryptionOrder,
};
} catch (e) {
- console.log('Notification encryption failed: ' + e);
+ console.log('Notification encryption failed', e);
return {
...basicPayload,
encryptionFailed: '1',
diff --git a/lib/push/send-utils.js b/lib/push/send-utils.js
--- a/lib/push/send-utils.js
+++ b/lib/push/send-utils.js
@@ -998,7 +998,7 @@
// session creation may fail for some devices
// but we should still pursue notification
// delivery for others
- console.log(e);
+ console.log('Olm session creation failed', e);
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 5:45 PM (3 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2540010
Default Alt Text
D13430.diff (1 KB)

Event Timeline