bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 57 forks source link

SEARCH/BOR/BTR-API - update gcp logging levels #21139

Open kialj876 opened 2 weeks ago

kialj876 commented 2 weeks ago

Currently the logging in the cloud run service for these apis is always shown as 'default' regardless of when we specify in the code (i.e. debug / error / etc.). Other teams / sre may have a solution.

Thor mentioned using structlog and having his code in an installable package for other teams so we can probably use that when it is ready.

This ticket is to investigate and fix this issue. We may need to relook at how we setup the logging when we init the app.

Possible useful links: https://cloud.google.com/logging/docs/setup/python