You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default cosmos-sdk logger is not very practical when used at the "debug" level as it's overwhelmed with cosmos-sdk specific output.
We should prefer using the "debug" level for any log that doesn't require node operator attention (e.g. handling invalid requests). I think this represents (or it should) the majority of logger calls.
Search each module for usages of logger.Info() and logger.Error(). Places where an error is logged and returned are prime examples of mis-leveled logs.
bryanchriswhite
changed the title
[Logging] Document how on-chain logging should be done as a best practice. For example[Logging] Document how on-chain logging should be done as a best practice
Oct 4, 2024
bryanchriswhite
changed the title
[Logging] Document how on-chain logging should be done as a best practice[Logging] Document on-chain logging best practices
Oct 4, 2024
Objective
Document
on-chain
logging best practices; e.g.:Consider which logger should be used:
Search each module for usages of logger.Info() and logger.Error(). Places where an error is logged and returned are prime examples of mis-leveled logs.
Origin Document
[Logging]
Documenton-chain
logging best practices #856Goals
Deliverables
Non-goals / Non-deliverables
General deliverables
Creator: @bryanchriswhite
Co-Owners: @Olshansk
The text was updated successfully, but these errors were encountered: