mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Changing warn to debug for rate limiting message.
This commit is contained in:
parent
f300c67a4d
commit
c18fa5a38e
@ -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;
|
||||
|
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user