Netflix-Skunkworks / spectatord

A high performance metrics daemon
Apache License 2.0
24 stars 5 forks source link

spectatord Logging is Too Verbose #71

Closed copperlight closed 11 months ago

copperlight commented 11 months ago

About ~25% of all Titus logs is just:

[spectator] [info] sent

We want to reduce the log volume in journald generally, because it goes to disk before shipping off-box.

We should provide a flag in spectatord, to allow turning this down.

I see the --debug and --verbose flags, but I want something more like --loglevel=error.

copperlight commented 11 months ago

Moving the "Sent: {} Dropped: {} Total: {}. Elapsed {:.3f}s" message to the debug level is the easiest way to do this.

These logs can then be accessed with the --verbose flag, which should only be needed when working through an issue.