logger/slog: fixup race condition #292

Merged
vtolstov merged 2 commits from log into v3 2024-02-22 08:58:41 +03:00
Showing only changes of commit c2b97b0f20 - Show all commits

View File

@ -140,7 +140,7 @@ func (s *slogLogger) Fields(attrs ...interface{}) logger.Logger {
handleOpt := &slog.HandlerOptions{ handleOpt := &slog.HandlerOptions{
ReplaceAttr: nl.renameAttr, ReplaceAttr: nl.renameAttr,
Level: s.leveler, Level: nl.leveler,
AddSource: true, AddSource: true,
} }