debug: log post_result calls

This commit is contained in:
M1 2026-03-18 13:22:35 +04:00
parent 749a06b9d7
commit 3ce89a88bf
1 changed files with 4 additions and 2 deletions

View File

@ -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),
}
});
}