Closed nawatts closed 1 year ago
This seems to be working well out of the box for internal server errors on the website, but multi-line log messages from the worker are still split across multiple log entries.
This was easier than I thought, since on Cloud Run we can use StructuredLogHandler
to format logs as JSON instead of the default CloudLoggingHandler
which has a client that communicates with Cloud Logging services.
Log messages should be formatted so that Cloud Logging understands them. Currently, multi-line log messages are treated as different messages.
https://cloud.google.com/logging/docs/structured-logging