refactor(test): add lint rule for messages starting with the component (#2045)

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
LaurentiuNiculae
2023-12-08 00:05:02 -08:00
committed by GitHub
parent 262a904286
commit 79e14027ee
81 changed files with 855 additions and 681 deletions
+2
View File
@@ -61,3 +61,5 @@ For example, lookup a cache (fast path) and it throws a not-found error, and we
expect to handle it and perform a slow path lookup. Instead of logging the
lookup failure at ERROR level, it may be more appropriate to log at DEBUG level
and then handle the error.
Also, instead of `Msg("error at something")` standardize on `Msg("failed at something")`.
+1 -1
View File
@@ -22,7 +22,7 @@ type Logger struct {
}
func (l Logger) Println(v ...interface{}) {
l.Logger.Error().Msg("panic recovered")
l.Logger.Error().Msg("panic recovered") //nolint: check-logs
}
func NewLogger(level, output string) Logger {