Skip to content

Commit

Permalink
refactor(logfx): improve replacerGenerator function
Browse files Browse the repository at this point in the history
- Change key-value attributes in prettyMode to empty
  • Loading branch information
code-a-man committed Aug 20, 2024
1 parent c3be634 commit 1b97b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bliss/logfx/replacer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func replacerGenerator(prettyMode bool) func([]string, slog.Attr) slog.Attr {
if prettyMode {
if attr.Key == slog.TimeKey || attr.Key == slog.LevelKey || attr.Key == slog.MessageKey {
return slog.Attr{
Key: attr.Key,
Value: attr.Value,
Key: "",
Value: slog.Value{},
}
}
}
Expand Down

0 comments on commit 1b97b15

Please sign in to comment.