mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Log errors only once for event notification errors (#5905)
This commit is contained in:
committed by
Dee Koder
parent
4886bfbc72
commit
cc8178cdc4
@@ -532,7 +532,7 @@ func sendEvent(args eventArgs) {
|
||||
reqInfo.AppendTags("EventName", args.EventName.String())
|
||||
reqInfo.AppendTags("targetID", err.ID.Name)
|
||||
ctx := logger.SetReqInfo(context.Background(), reqInfo)
|
||||
logger.LogIf(ctx, err.Err)
|
||||
logger.LogOnceIf(ctx, err.Err, err.ID)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user