Page MenuHomePhabricator

[native] Improve logging for thick threads notifs
ClosedPublic

Authored by ashoat on Sep 23 2024, 10:14 PM.
Tags
None
Referenced Files
F3643930: D13430.id44504.diff
Sat, Jan 4, 6:16 PM
F3643929: D13430.id44453.diff
Sat, Jan 4, 6:16 PM
F3643911: D13430.id.diff
Sat, Jan 4, 6:15 PM
F3643900: D13430.diff
Sat, Jan 4, 6:15 PM
Unknown Object (File)
Thu, Jan 2, 2:43 PM
Unknown Object (File)
Sun, Dec 22, 10:33 AM
Unknown Object (File)
Dec 5 2024, 7:50 PM
Unknown Object (File)
Dec 5 2024, 7:44 PM
Subscribers

Details

Summary

I found these logging improvements helpful while investigating ENG-9233. I'll annotate each inline.

Test Plan

Confirmed logging improvements

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/push/crypto.js
192 ↗(On Diff #44453)

Before:

Notification encryption failed: [object Object]

After:

Notification encryption failed {"message": "Session with deviceID: tjiSvK/6Z1aebjrLb55mpzWoIiN4Lr3yndNvNYw7ySo not initialized."}
lib/push/send-utils.js
1001 ↗(On Diff #44453)

Before:

[TypeError: undefined is not a function]

After:

Olm session creation failed [TypeError: undefined is not a function]
This revision is now accepted and ready to land.Sep 24 2024, 9:16 AM