change log level (#16128)
This commit is contained in:
parent
f36f888f55
commit
8c6fac9d97
|
@ -208,7 +208,7 @@ func (h *Handler) Allow(op Operation) error {
|
|||
// TODO(NET-1382): is this the correct log-level?
|
||||
|
||||
enforced := l.mode == ModeEnforcing
|
||||
h.logger.Warn("RPC exceeded allowed rate limit",
|
||||
h.logger.Debug("RPC exceeded allowed rate limit",
|
||||
"rpc", op.Name,
|
||||
"source_addr", op.SourceAddr,
|
||||
"limit_type", l.desc,
|
||||
|
|
|
@ -162,7 +162,7 @@ func TestServerRequestRateLimit(t *testing.T) {
|
|||
// putting this last as there are cases where logs
|
||||
// were not present in consumer when assertion was made.
|
||||
checkLogsForMessage(r, logConsumer.Msgs,
|
||||
fmt.Sprintf("[WARN] agent.server.rpc-rate-limit: RPC exceeded allowed rate limit: rpc=%s", op.action.rateLimitOperation),
|
||||
fmt.Sprintf("[DEBUG] agent.server.rpc-rate-limit: RPC exceeded allowed rate limit: rpc=%s", op.action.rateLimitOperation),
|
||||
op.action.rateLimitOperation, "exceeded", op.expectExceededLog)
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue