Page MenuHomePhabricator

[keyserver] Log on keyserver when INITIAL_NOTIFICATIONS_ENCRYPTED_MESSAGE is sent to the client
ClosedPublic

Authored by angelika on Nov 18 2024, 5:29 AM.
Tags
None
Referenced Files
F3516379: D13951.id45858.diff
Sun, Dec 22, 2:10 PM
F3512579: D13951.id45888.diff
Sat, Dec 21, 8:28 PM
F3512577: D13951.id45877.diff
Sat, Dec 21, 8:28 PM
F3512576: D13951.id45858.diff
Sat, Dec 21, 8:28 PM
F3512541: D13951.id.diff
Sat, Dec 21, 8:27 PM
F3512531: D13951.diff
Sat, Dec 21, 8:26 PM
Unknown Object (File)
Mon, Dec 16, 12:53 PM
Unknown Object (File)
Mon, Dec 9, 1:36 AM
Subscribers

Details

Summary
Test Plan

Flow and put the log somewhere else and check if it logs (I don't know how to trigger olmNotificationsSessionMissing)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Just wondering, what do you think of this style?

const { userID, cookieID, sessionID } = viewer;
const data = { userID, cookieID, sessionID };
console.log(
  'Sending INITIAL_NOTIFICATIONS_ENCRYPTED_MESSAGE ' +
    JSON.stringify(data),
);

Could work both here and in D13952.

Just wondering, what do you think of this style?

const { userID, cookieID, sessionID } = viewer;
const data = { userID, cookieID, sessionID };
console.log(
  'Sending INITIAL_NOTIFICATIONS_ENCRYPTED_MESSAGE ' +
    JSON.stringify(data),
);

Could work both here and in D13952.

I prefer this style too

keyserver/src/socket/socket.js
476 ↗(On Diff #45858)

Overall, this seems strange to log identifiable data, but probably it's fine for @ashoat's private keyserver

This revision is now accepted and ready to land.Nov 19 2024, 1:49 AM