From ba0427c98086fd5b645913d48bc6530cb7ad7b37 Mon Sep 17 00:00:00 2001 From: Hugo Blanc Date: Sat, 15 Jul 2023 21:10:45 +0200 Subject: [PATCH] chore: add caller to log messages --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 49fafb9..ca1a62e 100644 --- a/app/app.go +++ b/app/app.go @@ -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 }