Sourcify by default outputs the logs of different levels in a field called level in the output JSON. This is the standard output of winston and as well as what Prometheus expects.
However GCP uses a different field to mark this info, namely severity which is an uppercase enum e.g. WARNING (see docs)
We should have a check in the server logger if server is running on GCP and modify the log field accordingly.
Sourcify by default outputs the logs of different levels in a field called
level
in the output JSON. This is the standard output ofwinston
and as well as what Prometheus expects.However GCP uses a different field to mark this info, namely
severity
which is an uppercase enum e.g.WARNING
(see docs)We should have a check in the server logger if server is running on GCP and modify the log field accordingly.