mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-16 16:37:12 +03:00
Don't log 404 errors for disk cache
This commit is contained in:
@@ -31,7 +31,11 @@ class DiskCache {
|
|||||||
|
|
||||||
return result.status === 200 ? result.data : null;
|
return result.status === 200 ? result.data : null;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Logger.error(`DiskCache: Error getting key ${key}: ${err}`);
|
const response = (err as AxiosError).response;
|
||||||
|
if (!response || response.status !== 404) {
|
||||||
|
Logger.error(`DiskCache: Error getting key ${key}: ${err}`);
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user