logger: remove AddSource opt from HandlerOptions
This commit is contained in:
parent
37da34a41a
commit
611b5a5e56
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ func Load(path string, level slog.Level) error {
|
|||
return fmt.Errorf("failed to open log file: %w", err)
|
||||
}
|
||||
|
||||
opts := &slog.HandlerOptions{AddSource: true, Level: level}
|
||||
opts := &slog.HandlerOptions{Level: level}
|
||||
handler := slog.NewTextHandler(file, opts)
|
||||
slog.SetDefault(slog.New(handler))
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue