Skip to content

Commit daa5f83

Browse files
Reducing MySQL Error Logging
When the MYSQL server is down, the loop would go crazy pouring error messages and stack traces into grafana. To the point where the dashboard would stop working. This reduces the spam by giving the server a few seconds to come back up before we try again.
1 parent a5b400b commit daa5f83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Nullinside.Api.TwitchBot/Services/MainService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken) {
117117
}
118118
catch (Exception ex) {
119119
_log.LogError(ex, "Main Failed");
120+
await Task.Delay(TimeSpan.FromSeconds(10));
120121
}
121122
}
122123
}, stoppingToken);

0 commit comments

Comments
 (0)