From 0c23c38c68eb4cc62c95231b67c8656a0110b5d9 Mon Sep 17 00:00:00 2001 From: Sampark Sharma Date: Fri, 9 Dec 2022 11:06:42 +0000 Subject: [PATCH] Add debug logging for gzip fall back --- packages/cache/src/cache.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/cache/src/cache.ts b/packages/cache/src/cache.ts index 8d8bbd2c..d15975c3 100644 --- a/packages/cache/src/cache.ts +++ b/packages/cache/src/cache.ts @@ -102,9 +102,6 @@ export async function restoreCache( process.platform === 'win32' && compressionMethod !== CompressionMethod.Gzip ) { - console.log( - "Couldn't find cache entry with zstd compression, falling back to gzip compression" - ) compressionMethod = CompressionMethod.Gzip cacheEntry = await cacheHttpClient.getCacheEntry(keys, paths, { compressionMethod @@ -112,6 +109,10 @@ export async function restoreCache( if (!cacheEntry?.archiveLocation) { return undefined } + + core.debug( + "Couldn't find cache entry with zstd compression, falling back to gzip compression" + ) } else { // Cache not found return undefined