mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 19:29:07 +08:00
Add debug logging for gzip fall back
This commit is contained in:
parent
7a532d03f4
commit
0c23c38c68
7
packages/cache/src/cache.ts
vendored
7
packages/cache/src/cache.ts
vendored
@ -102,9 +102,6 @@ export async function restoreCache(
|
|||||||
process.platform === 'win32' &&
|
process.platform === 'win32' &&
|
||||||
compressionMethod !== CompressionMethod.Gzip
|
compressionMethod !== CompressionMethod.Gzip
|
||||||
) {
|
) {
|
||||||
console.log(
|
|
||||||
"Couldn't find cache entry with zstd compression, falling back to gzip compression"
|
|
||||||
)
|
|
||||||
compressionMethod = CompressionMethod.Gzip
|
compressionMethod = CompressionMethod.Gzip
|
||||||
cacheEntry = await cacheHttpClient.getCacheEntry(keys, paths, {
|
cacheEntry = await cacheHttpClient.getCacheEntry(keys, paths, {
|
||||||
compressionMethod
|
compressionMethod
|
||||||
@ -112,6 +109,10 @@ export async function restoreCache(
|
|||||||
if (!cacheEntry?.archiveLocation) {
|
if (!cacheEntry?.archiveLocation) {
|
||||||
return undefined
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.debug(
|
||||||
|
"Couldn't find cache entry with zstd compression, falling back to gzip compression"
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
// Cache not found
|
// Cache not found
|
||||||
return undefined
|
return undefined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user