akvo-rsr
akvo-rsr copied to clipboard
Bug: Logs are all sent to stderr and logfile
What were you doing?
When looking at logs on Google Cloud Logging, the logs are all marked as "errors". Additionally, logs are written to /var/akvo/rsr/logs
, which is non-standard and unnecessary when running in docker.
What should've happened?
Logs until INFO
should be on stdout
and ERROR
and above should be on stderr
.
My environment
No response
Additional context
I can't find explicit documentation, but it seems like anything logged to stderr
is recognized as an error according to this stackoverflow answer.
By default, StreamHandler
logs to stderr
when not instructed otherwise.