akvo-rsr icon indicating copy to clipboard operation
akvo-rsr copied to clipboard

Bug: Logs are all sent to stderr and logfile

Open MichaelAkvo opened this issue 1 year ago • 0 comments

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.

MichaelAkvo avatar Mar 13 '23 14:03 MichaelAkvo