I have a containerized Python application that I run with Batch. I use Python’s Logger following the documentation at https://cloud.google.com/logging/docs/setup/python
If I run my image locally, I am able to see the logs in the general Cloud Logger. However, when submit the batch job, I get the error:
"Waiting up to 5 seconds.
Program shutting down, attempting to send 14 queued log entries to Cloud Logging…
Sent all pending logs."
But I don’t see any logs on the console.
If I don’t use logger, but simply “print”, I do see my logs, but with these two errors in the end:
“Waiting up to 5 seconds.
Sent all pending logs.”
Ideally, I would like to use lLogger. Does anybody have any clue on this behavior? Thanks