Changing warn to debug for rate limiting message.

This commit is contained in:
Dessalines 2020-04-20 10:45:14 -04:00
parent f300c67a4d
commit c18fa5a38e
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ pub mod rate_limiter;
use super::{IPAddr, Settings};
use crate::api::APIError;
use failure::Error;
use log::warn;
use log::debug;
use rate_limiter::RateLimiter;
use std::collections::HashMap;
use std::sync::Arc;

View File

@ -105,7 +105,7 @@ impl RateLimiter {
}
if rate_limit.allowance < 1.0 {
warn!(
debug!(
"Rate limited IP: {}, time_passed: {}, allowance: {}",
ip, time_passed, rate_limit.allowance
);