m-lab / go

General purpose libraries / APIs for use in mlab code.
Apache License 2.0
5 stars 6 forks source link

flagx.ArgsFromEnv logging should be conditional #84

Closed stephen-soltesz closed 4 years ago

stephen-soltesz commented 4 years ago

For production daemons, logging the command line flags is an excellent feature.

For cli tools that use ArgsFromEnv, logging the command line flags is not excellent.

It would be helpful for there to be a way to make this logging conditional, or disabled for CLI use cases.