logger superset
in production mode writing logs to stderr confuses logging service in Google Cloud
#30135
Open
3 tasks done
Bug description
https://github.com/apache/superset/blob/4.0.2/superset/utils/logging_configurator.py#L50
This line overrides any
logging.basicConfig(...)
and reset the stream tostderr
.This is causing logging service in cloud platforms such as Google Cloud, specifically GKE, to falsely identify its output as errors, causing confusions to operation team.
How to reproduce the bug
Just run superset and look for anything written to stderr - there are messages that are not actually errors.
Screenshots/recordings
No response
Superset version
4.0.2
Python version
3.11
Node version
Not applicable
Browser
Not applicable
Additional context
I need to apply following workaround to prevent it sending logs to stderr - but for people who don't know, each of them will be confused before finding this issue report:
Checklist
The text was updated successfully, but these errors were encountered: