From b283faf22d82654019eb5df371a17fef6fb586f5 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 29a3a9e14..a95c51b5e 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 6b01a75b2..47bb3a1cc 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 );