Skip to content

Commit

Permalink
misc: change log level for guarded memory cache exception logging
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Dec 7, 2024
1 parent eabdf49 commit f15c8ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Shokofin/Utils/GuardedMemoryCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public TItem GetOrCreate<TItem>(object key, Action<TItem> foundAction, Func<TIte
throw;
}
catch (Exception ex) {
Logger.LogWarning(ex, "Got an unexpected exception for key: {Key}", key);
Logger.LogTrace(ex, "Got an unexpected exception for key: {Key}", key);
throw;
}
}
Expand Down Expand Up @@ -122,7 +122,7 @@ public async Task<TItem> GetOrCreateAsync<TItem>(object key, Action<TItem> found
throw;
}
catch (Exception ex) {
Logger.LogWarning(ex, "Got an unexpected exception for key: {Key}", key);
Logger.LogTrace(ex, "Got an unexpected exception for key: {Key}", key);
throw;
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ public TItem GetOrCreate<TItem>(object key, Func<TItem> createFactory, MemoryCac
throw;
}
catch (Exception ex) {
Logger.LogWarning(ex, "Got an unexpected exception for key: {Key}", key);
Logger.LogTrace(ex, "Got an unexpected exception for key: {Key}", key);
throw;
}
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public async Task<TItem> GetOrCreateAsync<TItem>(object key, Func<Task<TItem>> c
throw;
}
catch (Exception ex) {
Logger.LogWarning(ex, "Got an unexpected exception for key: {Key}", key);
Logger.LogTrace(ex, "Got an unexpected exception for key: {Key}", key);
throw;
}
}
Expand Down

0 comments on commit f15c8ab

Please sign in to comment.