Skip to content

Commit 1da05cc

Browse files
committed
fix: Non-constant format string
1 parent 72c4d12 commit 1da05cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

logging/struct_log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ const (
1515
func (l *Logger) InfoStruct(format OutputFormat, obj any) {
1616
switch format {
1717
case Json:
18-
l.Info(l.addHeader("INFO", strings.PrettyPrintJson(obj)))
18+
l.Info(l.addHeader("INFO", strings.PrettyPrintJson(obj)), "")
1919
case Yaml:
20-
l.Info(l.addHeader("INFO", strings.PrettyPrintYaml(obj)))
20+
l.Info(l.addHeader("INFO", strings.PrettyPrintYaml(obj)), "")
2121
}
2222
}
2323

0 commit comments

Comments
 (0)