Skip to content

Commit

Permalink
fix: data race getting exclude rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Crocmagnon authored and fsamin committed Jul 29, 2024
1 parent fd3fe4c commit 6639a3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ func (l *Logger) call(ctx context.Context, level Level, format string, args ...i
}

mExcludeRules := make(map[Field]any)
for i := range l.GetExcludeRules() {
mExcludeRules[l.excludeRules[i].Field] = l.excludeRules[i].Value
for _, rule := range l.GetExcludeRules() {
mExcludeRules[rule.Field] = rule.Value
}

for _, k := range l.GetRegisteredFields() {
Expand Down

0 comments on commit 6639a3c

Please sign in to comment.