Skip to content

Commit

Permalink
Tweak Error Reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Jan 23, 2022
1 parent 26e1844 commit 0795b61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions TVRename/Model/CachePersistor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ private static void SaveCacheInternal([NotNull] ConcurrentDictionary<int, Cached
{
RotateCacheFiles(cacheFile);
}
catch (System.IO.FileNotFoundException e)
{
Logger.Warn(e, $"Failed to rotate files for Cache to {cacheFile.FullName}");
}
catch (Exception e)
{
Logger.Error(e, $"Failed to rotate files for Cache to {cacheFile.FullName}");
Expand Down
2 changes: 1 addition & 1 deletion TVRename/TVRename/CacheUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void GetThread([NotNull] object codeIn)
}
catch (TaskCanceledException sce)
{
Logger.Error(sce, sce.Message);
Logger.Warn(sce, sce.Message);
}
catch (Exception e)
{
Expand Down

0 comments on commit 0795b61

Please sign in to comment.