Skip to content

Commit ec55b57

Browse files
authored
Make heartbeat quiet in debug builds (#801)
1 parent 1bd526d commit ec55b57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/amalthea/src/socket/heartbeat.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ impl Heartbeat {
2020

2121
/// Listen for heartbeats; does not return
2222
pub fn listen(&self) {
23-
// Should we make it quiet by default in debug builds?
23+
#[cfg(debug_assertions)]
24+
let quiet = true;
25+
#[cfg(not(debug_assertions))]
2426
let quiet = std::env::var("ARK_HEARTBEAT_QUIET").is_ok();
2527

2628
loop {

0 commit comments

Comments
 (0)