Skip to content

Commit 7f087ff

Browse files
committed
fix lint issues
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 7f608bb commit 7f087ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/opts.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type (
99
Opts struct {
1010
// logger
1111
Logger struct {
12-
Level string `long:"log.level" env:"LOG_LEVEL" description:"Log level" choice:"trace" choice:"debug" choice:"info" choice:"warning" choice:"error" default:"info"`
13-
Format string `long:"log.format" env:"LOG_FORMAT" description:"Log format" choice:"text" choice:"json" default:"text"`
14-
Source string `long:"log.source" env:"LOG_SOURCE" description:"Show source for every log message (useful for debugging and bug reports)" choice:"off" choice:"short" choice:"file" choice:"full" default:"off"`
12+
Level string `long:"log.level" env:"LOG_LEVEL" description:"Log level" choice:"trace" choice:"debug" choice:"info" choice:"warning" choice:"error" default:"info"` // nolint:staticcheck // multiple choices are ok
13+
Format string `long:"log.format" env:"LOG_FORMAT" description:"Log format" choice:"text" choice:"json" default:"text"` // nolint:staticcheck // multiple choices are ok
14+
Source string `long:"log.source" env:"LOG_SOURCE" description:"Show source for every log message (useful for debugging and bug reports)" choice:"off" choice:"short" choice:"file" choice:"full" default:"off"` // nolint:staticcheck // multiple choices are ok
1515
Time bool `long:"log.time" env:"LOG_TIME" description:"Show time"`
1616
Json bool `long:"log.json" env:"LOG_JSON" description:"Switch log output to json format"`
1717
}

0 commit comments

Comments
 (0)