[pbs-devel] [PATCH proxmox-backup 2/2] traffic-control: add debug log when we found a matching rule

Dominik Csapak d.csapak at proxmox.com
Fri Feb 4 10:12:21 CET 2022


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
optional, at least one user in the forum has a problem with traffic
control, this could help debug that in the future...

 src/cached_traffic_control.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cached_traffic_control.rs b/src/cached_traffic_control.rs
index 2f077d36..cd13bc1b 100644
--- a/src/cached_traffic_control.rs
+++ b/src/cached_traffic_control.rs
@@ -342,6 +342,7 @@ impl TrafficControlCache {
             Some((rule, _)) => {
                 match self.limiter_map.get(&rule.config.name) {
                     Some((read_limiter, write_limiter)) => {
+                        log::debug!("found traffic control rule for {:?} : {}", peer_ip, &rule.config.name);
                         (&rule.config.name, read_limiter.clone(), write_limiter.clone())
                     }
                     None => ("", None, None), // should never happen
-- 
2.30.2






More information about the pbs-devel mailing list