Open jason-ford-codecov opened 2 months ago
AND, the finale of explanation: the default stream used by StreamHandler is stderr, which is rightly (IMHO) interpreted by google's logging reporting as "error."
Unfortunately still an issue in February 2024. My workaround was to use a log format that GCP seems to parse more effectively. With logging.basicConfig I am setting the log format to the following u'{"message": "%(asctime)s %(module)s %(process)d %(thread)d %(message)s", "severity": "%(levelname)s", "time": "%(asctime)s"}'
Is there a way to change the level of logging for this app to not show up in gcp logs as an error? It fills up the logs.