diff --git a/apps/monitor/src/runner.rs b/apps/monitor/src/runner.rs index ad84bbc..cf4578d 100644 --- a/apps/monitor/src/runner.rs +++ b/apps/monitor/src/runner.rs @@ -63,8 +63,10 @@ pub async fn fetch_and_run( }; // Remove from in-flight before posting so a fast next cycle can pick it up in_flight.lock().await.remove(&monitor.id); - if let Err(e) = post_result(&client, &coordinator_url, &token, result).await { - warn!("Failed to post result for {}: {e}", monitor.id); + warn!("posting result for {} up={}", monitor.id, result.up); + match post_result(&client, &coordinator_url, &token, result).await { + Ok(_) => warn!("posted result for {}", monitor.id), + Err(e) => warn!("Failed to post result for {}: {e}", monitor.id), } }); }