improved status controller response

This commit is contained in:
Flaminel
2026-06-03 21:44:52 +03:00
parent bc9ce30505
commit 4abd841ef5

View File

@@ -145,12 +145,13 @@ public class StatusController : ControllerBase
}
catch (Exception ex)
{
_logger.LogWarning(ex, "health check failed for {type} instance | {url}", type, instance.Url);
results.Add(new
{
instance.Name,
instance.Url,
IsConnected = false,
Message = $"Connection failed: {ex.Message}"
Message = "Connection failed"
});
}
}