Page MenuHomePhabricator

[Identity] Allow for setting logging levels through env
ClosedPublic

Authored by jon on Jun 30 2023, 3:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 2:41 PM
Unknown Object (File)
Sat, May 4, 11:12 PM
Unknown Object (File)
Sat, May 4, 11:11 PM
Unknown Object (File)
Sat, May 4, 11:11 PM
Unknown Object (File)
Sat, May 4, 11:11 PM
Unknown Object (File)
Sat, May 4, 11:11 PM
Unknown Object (File)
Sat, May 4, 11:10 PM
Unknown Object (File)
Sat, May 4, 10:40 PM
Subscribers

Details

Summary

Improve logging, previously only INFO and above
could be emitted. Now you can set debug with RUST_LOG=debug

Depends on D8400

Test Plan
cd services/identity
RUST_LOG=debug cargo run -- server

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

services/identity/src/client_service.rs
100 ↗(On Diff #28317)

Nit, I see this cleaner without the blank line

429 ↗(On Diff #28317)
  • Isn't this "user_id and password"?
  • I don't know how sensitive data this is - It's debug-only log so I assume we don't display it in prod anyway, do we?
services/identity/src/client_service.rs
429 ↗(On Diff #28317)

Even in debug, I think printing a password to the log isn't great...

Imagine somebody uses a real password of theirs in the dev environment. They would be surprised (in a bad way) if they see it printed to the screen

I think printing the username here is fine though

jon marked 3 inline comments as done.

Address feedback

This revision is now accepted and ready to land.Jul 6 2023, 10:56 AM

Address feedback, fix parent diff

services/identity/src/client_service.rs
429 ↗(On Diff #28317)

oh sorry, I added this because of the regression in identity service (which had the error message "pakeRegistrationData not found"), I meant to remove it before doing arc diff

This revision was landed with ongoing or failed builds.Jul 16 2023, 7:39 PM
This revision was automatically updated to reflect the committed changes.