From: Dessalines Date: Mon, 20 Apr 2020 14:45:14 +0000 (-0400) Subject: Changing warn to debug for rate limiting message. X-Git-Url: http://these/git/readmes/%7B%60https:/%22https:/hacktivis.me/static/gitweb.js?a=commitdiff_plain;h=c18fa5a38e36f764c8020ff3ed56c92bccc909f6;p=lemmy.git Changing warn to debug for rate limiting message. --- diff --git a/server/src/rate_limit/mod.rs b/server/src/rate_limit/mod.rs index 29a3a9e1..a95c51b5 100644 --- a/server/src/rate_limit/mod.rs +++ b/server/src/rate_limit/mod.rs @@ -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; diff --git a/server/src/rate_limit/rate_limiter.rs b/server/src/rate_limit/rate_limiter.rs index 6b01a75b..47bb3a1c 100644 --- a/server/src/rate_limit/rate_limiter.rs +++ b/server/src/rate_limit/rate_limiter.rs @@ -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 );