Remove source info from log messages
slog.HandlerOptions.AddSource is a cool feature, but since we moved the logger to a separate package it no longer works. It now always shows source info for the log package, rather than the code that called it. This change removes it.
This commit is contained in:
parent
1ca6b0b402
commit
9f678b6be7
3 changed files with 2 additions and 6 deletions
|
|
@ -29,9 +29,7 @@ func Init() {
|
|||
|
||||
logger = Logger{
|
||||
slog.New(
|
||||
slog.NewJSONHandler(lj, &slog.HandlerOptions{
|
||||
AddSource: cfg.LogAddSource,
|
||||
}),
|
||||
slog.NewJSONHandler(lj, &slog.HandlerOptions{}),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue