From 86c1980c03ef6b6c66ef7dea2b10b0c49181a952 Mon Sep 17 00:00:00 2001 From: zarix908 Date: Wed, 28 Feb 2024 15:31:15 +0500 Subject: [PATCH] add debug info and update version --- Cargo.toml | 2 +- src/stats.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6bb7a1a..3c881ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bioyino" -version = "0.8.1-testing" +version = "0.8.2-testing" authors = ["Sergey Noskov aka Albibek "] description = "StatsD-compatible, high-performance, fault-tolerant metric aggregator" edition = "2018" diff --git a/src/stats.rs b/src/stats.rs index a84c25e..c34b493 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -225,6 +225,7 @@ impl OwnStats { let mut calculator = AggregateCalculator::new(&mut metric, &aggs); let v = calculator.nth(0).unwrap().unwrap().1; + info!(self.log, "===============================aggregated: {}", v); let counter = metrics.counter(String::from_utf8(name.name.to_ascii_lowercase()).unwrap().as_str()); counter.write(v as isize, Labels::default()); }