Skip to content

Commit

Permalink
add source for log
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored and samlaf committed Jul 23, 2024
1 parent 17a2d48 commit 87e3e38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testutils/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ import (
)

func GetTestLogger() logging.Logger {
return logging.NewTextSLogger(os.Stdout, &logging.SLoggerOptions{Level: slog.LevelDebug})
return logging.NewTextSLogger(os.Stdout,
&logging.SLoggerOptions{
Level: slog.LevelDebug,
AddSource: true,
},
)
}

0 comments on commit 87e3e38

Please sign in to comment.