Page MenuHomePhabricator

Reduce the verbosity of the "Aphlict" log
ClosedPublic

Authored by epriestley on Apr 14 2020, 8:21 PM.

Details

Summary

See PHI1692. Currently, the Aphlict log is ridiculously verbose. As an initial pass at improving this:

  • When starting in "debug" mode, pass "--debug=1" to Node.
  • In Node, separate logging into "log" (lower-volume, more-important messages) and "trace" (higher-volume, less-important messages).
  • Only print "trace" messages in "debug" mode.
Test Plan

Ran Aphlict in debug and non-debug modes. Behavior unchanged in debug mode, but log has more sensible verbosity in non-debug mode.

Diff Detail

Repository
rP Phabricator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.