Skip to content

Commit

Permalink
Add debug logging for gzip fall back
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantsure authored Dec 9, 2022
1 parent 7a532d0 commit 0c23c38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cache/src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,17 @@ 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
})
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
Expand Down

0 comments on commit 0c23c38

Please sign in to comment.