This PR seeks to allow setting log level globally for the app. Currently, there are a lot of info logs, which can overload centralized logging when 1) there are many servers and 2) the Prometheus polling cycle is short. Allow less verbose logging.
Add Loglevel to the Config struct.
Add an accompanying, optional loglevel to config.yml.example.
For backwards compatibility, make info the default log level.
This PR seeks to allow setting log level globally for the app. Currently, there are a lot of
info
logs, which can overload centralized logging when 1) there are many servers and 2) the Prometheus polling cycle is short. Allow less verbose logging.Loglevel
to theConfig
struct.loglevel
toconfig.yml.example
.info
the default log level.