ethereum / sourcify

Decentralized Solidity contract source code verification service
https://sourcify.dev
MIT License
780 stars 395 forks source link

Adapt log levels for GCP #1559

Closed kuzdogan closed 2 months ago

kuzdogan commented 2 months ago

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.