We run containers and collect their stdout/stderr using a log collecting agent. The agent marks stderr as error logs. Yabeda::Prometheus::Exporter internally uses Rack::CommonLogger without passing logger. In this case Rack::CommonLogger logs to stderr. As a result, simple webrick logs are marked as errors in our environment.
Background:
We run containers and collect their stdout/stderr using a log collecting agent. The agent marks stderr as error logs.
Yabeda::Prometheus::Exporter
internally usesRack::CommonLogger
without passing logger. In this caseRack::CommonLogger
logs to stderr. As a result, simple webrick logs are marked as errors in our environment.Possible solutions:
Rack::CommonLogger
Thanks in advance.