We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec1359 commit 0b65ff4Copy full SHA for 0b65ff4
promslog/slog.go
@@ -115,7 +115,7 @@ func (l *AllowedLevel) Set(s string) error {
115
l.lvl.Set(slog.LevelError)
116
callerAddFunc = false
117
default:
118
- return fmt.Errorf("unrecognized log level %q", s)
+ return fmt.Errorf("unrecognized log level %s", s)
119
}
120
l.s = s
121
return nil
@@ -136,7 +136,7 @@ func (f *AllowedFormat) Set(s string) error {
136
case "logfmt", "json":
137
f.s = s
138
139
- return fmt.Errorf("unrecognized log format %q", s)
+ return fmt.Errorf("unrecognized log format %s", s)
140
141
142
0 commit comments