Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
chore: add caller to log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel authored and xakraz committed Jul 19, 2023
1 parent b0381b1 commit ba0427c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type App struct {
// Create creates a new App with an initialized logger only
func Create() (*App, error) {
var a App
a.Logger = zerolog.New(os.Stderr)
a.Logger = zerolog.New(os.Stderr).With().Caller().Logger()
return &a, nil
}

Expand Down

0 comments on commit ba0427c

Please sign in to comment.