Info log showing as error logging, need be changed
kamikazebr opened this issue · 2 comments
When some info log it's called it call under the console.error
and with it pollute all monitoring and logging services (GCP).
- the
error
variable it's ignored, and never printed
Showing only that message below, with no more info about what exactly happen.
Where the code will be changed
https://github.com/1Hive/celeste-backend/blob/development/packages/shared/helpers/logger.js#L38
After some digging investigation, i found in localhost there have Grafana with Loki to collect the logs but its not appear be live.
With Grafana and Loki we can get better logging results and understand better some errors, it's look like live on Google Cloud, can't find the url for it.
Looks like it need be properly configured. And maybe with it we dont need modify any code.
I found the route to Grafana and Loki, i think avoid big changes we can use that to check logs. I think it could be closed.