1
0
Fork 0

Add debug logging for gzip fall back

pull/1260/head
Sampark Sharma 2022-12-09 11:06:42 +00:00 committed by GitHub
parent 7a532d03f4
commit 0c23c38c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -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