Skip to content

Commit e7d75c3

Browse files
author
Thomas Luijken
committed
Added logging in case the handled panic
1 parent a123001 commit e7d75c3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

oxybox/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oxybox"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
authors = ["Thomas Luijken"]
55
categories = ["command-line-utilities"]
66
description = "A drop in replacement for blackbox exporter for Prometheus, with support for TLS and HTTP/3."

oxybox/src/http_probe/probe.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ pub async fn run_probe_loop(
256256
}
257257

258258
for handle in handles {
259-
let _ = handle.await;
259+
if let Err(join_err) = handle.await {
260+
log::error!("Task panicked: {:?}", join_err);
261+
}
260262
}
261-
262263
sleep(Duration::from_secs(org_config.polling_interval_seconds)).await;
263264
}
264265
}

0 commit comments

Comments
 (0)