From f15c8ab4c43a3fbcb31b863d216cb26037f0fd09 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Sat, 7 Dec 2024 03:01:27 +0100 Subject: [PATCH] misc: change log level for guarded memory cache exception logging --- Shokofin/Utils/GuardedMemoryCache.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shokofin/Utils/GuardedMemoryCache.cs b/Shokofin/Utils/GuardedMemoryCache.cs index 0c91149..0831ddc 100644 --- a/Shokofin/Utils/GuardedMemoryCache.cs +++ b/Shokofin/Utils/GuardedMemoryCache.cs @@ -77,7 +77,7 @@ public TItem GetOrCreate(object key, Action foundAction, Func GetOrCreateAsync(object key, Action 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; } } @@ -162,7 +162,7 @@ public TItem GetOrCreate(object key, Func 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; } } @@ -202,7 +202,7 @@ public async Task GetOrCreateAsync(object key, Func> 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; } }