Skip to content

Commit 5461bf7

Browse files
yhabteabjulianbrost
authored andcommitted
Don't duplicate object string in logger context
1 parent 8d17041 commit 5461bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/incident/incident.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (i *Incident) ProcessEvent(ev event.Event, created bool) error {
8686
return err
8787
}
8888

89-
i.logger = i.logger.With(zap.String("object", i.ObjectDisplayName()), zap.String("incident", i.String()))
89+
i.logger = i.logger.With(zap.String("incident", i.String()))
9090
}
9191

9292
if err := i.AddEvent(&ev); err != nil {

0 commit comments

Comments
 (0)