Page MenuHomePhabricator

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

Authored by angelika on Mon, Nov 18, 5:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 30, 1:35 PM
Unknown Object (File)
Thu, Nov 28, 12:06 PM
Unknown Object (File)
Thu, Nov 28, 5:04 AM
Unknown Object (File)
Thu, Nov 28, 4:45 AM
Unknown Object (File)
Thu, Nov 28, 4:24 AM
Unknown Object (File)
Tue, Nov 26, 3:37 AM
Unknown Object (File)
Mon, Nov 25, 9:42 PM
Unknown Object (File)
Mon, Nov 25, 6:48 PM
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
Branch
graszka22/ENG-9932
Lint
No Lint Coverage
Unit
No Test Coverage

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.Tue, Nov 19, 1:49 AM