Skip to content

Commit

Permalink
chore: lower the loglevels for intermittent errors (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek authored Apr 17, 2024
1 parent 64752c1 commit 62894e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Unleash/Scheduling/FetchFeatureTogglesTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task ExecuteAsync(CancellationToken cancellationToken)
}
catch (HttpRequestException ex)
{
Logger.Error(() => $"UNLEASH: Unhandled exception when fetching toggles.", ex);
Logger.Warn(() => $"UNLEASH: Unhandled exception when fetching toggles.", ex);
eventConfig?.RaiseError(new ErrorEvent() { ErrorType = ErrorType.Client, Error = ex });
throw new UnleashException("Exception while fetching from API", ex);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Unleash/Scheduling/SystemTimerScheduledTaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async void Callback(object state)
}
catch (Exception ex)
{
Logger.Error(() => $"UNLEASH: Unhandled exception from background task '{name}'.", ex);
Logger.Warn(() => $"UNLEASH: Unhandled exception from background task '{name}'.", ex);
}
finally
{
Expand Down

0 comments on commit 62894e9

Please sign in to comment.