Changing warn to debug for rate limiting message.
This commit is contained in:
parent
f300c67a4d
commit
c18fa5a38e
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ pub mod rate_limiter;
|
||||||
use super::{IPAddr, Settings};
|
use super::{IPAddr, Settings};
|
||||||
use crate::api::APIError;
|
use crate::api::APIError;
|
||||||
use failure::Error;
|
use failure::Error;
|
||||||
use log::warn;
|
use log::debug;
|
||||||
use rate_limiter::RateLimiter;
|
use rate_limiter::RateLimiter;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
|
@ -105,7 +105,7 @@ impl RateLimiter {
|
||||||
}
|
}
|
||||||
|
|
||||||
if rate_limit.allowance < 1.0 {
|
if rate_limit.allowance < 1.0 {
|
||||||
warn!(
|
debug!(
|
||||||
"Rate limited IP: {}, time_passed: {}, allowance: {}",
|
"Rate limited IP: {}, time_passed: {}, allowance: {}",
|
||||||
ip, time_passed, rate_limit.allowance
|
ip, time_passed, rate_limit.allowance
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue