chore: debug log cache revalidation

This commit is contained in:
Rhys Arkins 2023-01-14 20:12:00 +01:00
parent 52700690a5
commit 9720ca8d3c

View file

@ -104,7 +104,7 @@ export async function getDependency(
}
const raw = await http.getJson<NpmResponse>(packageUrl, options);
if (cachedResult?.cacheData && raw.statusCode === 304) {
logger.trace('Cached data is unchanged and can be reused');
logger.debug({ packageName }, 'Cached npm result is revalidated');
cachedResult.cacheData.softExpireAt = softExpireAt;
await packageCache.set(
cacheNamespace,