Hardened background work against disconnected circuits (#937)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-08-25 18:53:09 +02:00
1 parent 99089f853e
commit f03c2d1c88
44 files changed
+500 -126

No files matched your search

@@ -26,7 +26,12 @@ public sealed partial class RustService
{
try
{
// Fire-and-forget the log event to avoid blocking:
//
// Fire-and-forget the log event to avoid blocking. This is the one place which deliberately
// discards its task instead of observing it: observing means logging the failure, and logging
// means sending another log event through this very method. A broken connection to Rust would
// feed itself. The unobserved task exception handler in Program.cs remains the safety net here.
//
var request = new LogEventRequest(timestamp, level, category, message, exception, stackTrace);
_ = this.http.PostAsJsonAsync("/log/event", request, this.jsonRustSerializerOptions);
}