debug: log post_result calls
This commit is contained in:
parent
749a06b9d7
commit
3ce89a88bf
|
|
@ -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
|
// Remove from in-flight before posting so a fast next cycle can pick it up
|
||||||
in_flight.lock().await.remove(&monitor.id);
|
in_flight.lock().await.remove(&monitor.id);
|
||||||
if let Err(e) = post_result(&client, &coordinator_url, &token, result).await {
|
warn!("posting result for {} up={}", monitor.id, result.up);
|
||||||
warn!("Failed to post result for {}: {e}", monitor.id);
|
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),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue