Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniRamirezM committed Sep 8, 2023
1 parent adec25c commit 2b8deef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func main() {
Outputs: []string{"stdout"},
})

log.Errorf("Start command invalid from entry %d for client %q", 123, "olakase")

app := cli.NewApp()

app.Commands = []*cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func Fatalf(template string, args ...interface{}) {
// the ErrorFile.
func Errorf(template string, args ...interface{}) {
args = appendStackTraceMaybeArgs(args)
getDefaultLog().Errorf(template+" %s", args...)
getDefaultLog().Errorf(template, args...)
}

// appendStackTraceMaybeKV will append the stacktrace to the KV
Expand Down

0 comments on commit 2b8deef

Please sign in to comment.