diff --git a/Services/RunnerService.cs b/Services/RunnerService.cs index 47146f1..a5bb52d 100644 --- a/Services/RunnerService.cs +++ b/Services/RunnerService.cs @@ -30,13 +30,15 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) if(!status) { - throw new Exception("Server is down"); + throw new Exception("Server is down."); } } - catch(Exception e) + // A simplified, more dev-friendly error if we hit a rather standard error. + catch(HttpRequestException httpException) { await _discordService.SetPresence(ActivityType.Watching, "server status: DOWN !"); - Log.Error(e, "RunnerService"); + // A warning is more accurate to something that may cause issues if not resolved. + Log.Warning($"RunnerService: Caught HttpRequestException from serverApi.GetPing: {httpException.Message}", "RunnerService"); } await Task.Delay(TimeSpan.FromMinutes(1), stoppingToken); }