Skip to content

Commit

Permalink
rate limit config: use warn and pow2 for invalid hits addend (#37756)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbpcode authored Dec 19, 2024
1 parent 70b7478 commit 25324d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void RateLimitPolicy::populateDescriptors(const Http::RequestHeaderMap& headers,
if (success) {
descriptor.hits_addend_ = static_cast<uint64_t>(hits_addend);
} else {
ENVOY_LOG(debug, "Invalid hits_addend: {}", hits_addend_value.DebugString());
ENVOY_LOG_EVERY_POW_2(warn, "Invalid hits_addend: {}", hits_addend_value.DebugString());
return;
}

Expand Down

0 comments on commit 25324d7

Please sign in to comment.