Skip to content

Commit 53a5abc

Browse files
mortenljtronghn
andcommitted
Add source to log messages
Co-authored-by: Trong Nguyen <[email protected]>
1 parent a7d4dff commit 53a5abc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/pkg/config/logging.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ type Logging struct {
1212

1313
func SetupLogging(conf *Config) *slog.Logger {
1414
opts := &slog.HandlerOptions{
15-
Level: conf.Logging.Level,
15+
Level: conf.Logging.Level,
16+
AddSource: true,
1617
}
1718
var handler slog.Handler
1819
if conf.Logging.Format == "JSON" {

0 commit comments

Comments
 (0)