From c18fa5a38e36f764c8020ff3ed56c92bccc909f6 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 20 Apr 2020 10:45:14 -0400 Subject: [PATCH] Changing warn to debug for rate limiting message. --- server/src/rate_limit/mod.rs | 2 +- server/src/rate_limit/rate_limiter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.44.1