Google Cloud Logging not capturing log for some services
I’m using Google Cloud Logging for my flask app.
The python logger is set with google’s CloudLoggingHandler, and it’s being used by the flask app itself and also other many services that runs independently using cli (it’s also part of the same flask project)
The problem that I’m facing is that there is times when logs from some services are not being captured/sent to the google cloud logging.
So far, the only way to make the log be captured in cloud logging is by restarting the services, which I don’t think is ideal to do frequently.
I’ve tried checking if there’s an error/exception occurring when initializing the logger in each services but couldn’t find any.
Read more here: Source link