From 57dd4b03b074c5a27f59e487f7171fcf7b39bfef Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 20 May 2019 23:59:35 -0400 Subject: [PATCH] Fix printing Good on not-Good --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0f14333..ae38a5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,7 +180,7 @@ pub fn scan_node(scan_time: Instant, node: SocketAddr) { } else { assert!(state_lock.fail_reason != AddressState::Good); let old_state = store.set_node_state(node, state_lock.fail_reason, 0); - if old_state != state_lock.fail_reason && state_lock.msg.0 != "" { + if old_state != state_lock.fail_reason && state_lock.msg.0 != "" && state_lock.msg.1 { printer.add_line(format!("Updating {} from {} to {}", node, old_state.to_str(), &state_lock.msg.0), state_lock.msg.1); } } -- 2.39.5