polyswarm / relay

Sidechain relay for PolySwarm, the first decentralized threat intelligence market.
https://polyswarm.io
GNU General Public License v3.0
2 stars 1 forks source link

Log level hardcoded to debug #28

Closed mjkoo closed 5 years ago

mjkoo commented 5 years ago

Describe the bug Log level is always set to debug, should respect either env var (preferable to match other rust log libs imo) or config value, or at least be set to info or similar.

myhndl commented 5 years ago

Other projects support a CLI arg, --log to specify level. Let's do the same here with the (admittedly ambiguous) CLI argument.

Lets:

  1. [ ] default to info level
  2. [ ] override default with env var
  3. [ ] override envvar with --log CLI arg