Skip to content

Commit b1107f9

Browse files
flearcForsworns
authored andcommitted
remove useless print logic
1 parent bf76a5d commit b1107f9

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

sentinel-core/src/core/log/metric/aggregator.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ pub fn write_task(mut map: MetricTimeMap) {
4444
}
4545
// Sort the time
4646
keys.sort_unstable();
47-
println!("keys: {:?}", keys);
4847

4948
let writer = METRIC_WRITER.as_ref().unwrap();
5049
let mut writer = writer.lock().unwrap();
@@ -73,13 +72,10 @@ pub fn do_aggregate() {
7372
current_metric_items(stat::inbound_node(), cur_time),
7473
stat::inbound_node(),
7574
);
76-
println!("map: {:?}", map);
7775

7876
// Update current last fetch timestamp.
7977
LAST_FETCH_TIME.store(cur_time, Ordering::SeqCst);
8078

81-
println!("Store last fetch time {}", cur_time);
82-
8379
if !map.is_empty() {
8480
std::thread::spawn(move || write_task(map));
8581
}

sentinel-core/src/datasource/property.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ pub type PropertyConverter<P> = fn(src: &str) -> Result<Vec<Arc<P>>>;
1111
pub fn rule_json_array_parser<P: SentinelRule + DeserializeOwned>(
1212
src: &str,
1313
) -> Result<Vec<Arc<P>>> {
14-
println!("{:?}", src);
15-
println!("{:?}", serde_json::from_str::<Vec<P>>(src));
1614
let rules: Vec<P> = serde_json::from_str(src)?;
1715
Ok(rules.into_iter().map(|r| Arc::new(r)).collect())
1816
}

0 commit comments

Comments
 (0)