Skip to content

Commit

Permalink
Logging source is not so nice
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 31, 2023
1 parent bcc2393 commit bb5bec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Run() {
case "error":
lvl = slog.LevelError
}
log := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: lvl, AddSource: true}))
log := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: lvl, AddSource: false}))

log.Info("metal-core version", "version", v.V)
log.Info("configuration", "cfg", cfg)
Expand Down

0 comments on commit bb5bec4

Please sign in to comment.