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); } }