Analyse the codebase for use of logging, write a policy.
Starting point:
warn! for unexpected device behaviour
error! for library errors only
trace! for verbose bytearray dumps, debug! only lenghts or very small, relevant fields
- Sensitive request/response content at
debug! or more verbose only
debug!({ %foo, ?bar }, "Static comment") and error!(?err, "Error message") over string interpolation
Bonus point for automated linting checks.
Analyse the codebase for use of logging, write a policy.
Starting point:
warn!for unexpected device behaviourerror!for library errors onlytrace!for verbose bytearray dumps,debug!only lenghts or very small, relevant fieldsdebug!or more verbose onlydebug!({ %foo, ?bar }, "Static comment")anderror!(?err, "Error message")over string interpolationBonus point for automated linting checks.