Log errors only once for event notification errors (#5905)

This commit is contained in:
Krishna Srinivas
2018-05-09 15:59:45 -07:00
committed by Dee Koder
parent 4886bfbc72
commit cc8178cdc4
2 changed files with 83 additions and 1 deletions

View File

@@ -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)
}
}