Skip to content

Commit ed221c8

Browse files
committed
Don't log 404 errors for disk cache
1 parent 29660d9 commit ed221c8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/diskCache.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ class DiskCache {
3131

3232
return result.status === 200 ? result.data : null;
3333
} catch (err) {
34-
Logger.error(`DiskCache: Error getting key ${key}: ${err}`);
34+
const response = (err as AxiosError).response;
35+
if (!response || response.status !== 404) {
36+
Logger.error(`DiskCache: Error getting key ${key}: ${err}`);
37+
}
38+
3539
return null;
3640
}
3741
}

0 commit comments

Comments
 (0)