Improve cache logging

This commit is contained in:
daz
2024-09-13 11:05:35 -06:00
committed by Daz DeBoer
parent 36455cb5f4
commit 340f8b64e0
3 changed files with 6 additions and 12 deletions

View File

@@ -134,7 +134,6 @@ abstract class AbstractEntryExtractor {
): Promise<ExtractedCacheEntry> {
const restoredEntry = await restoreCache([pattern], cacheKey, [], listener)
if (restoredEntry) {
core.info(`Restored ${artifactType} with key ${cacheKey} to ${pattern} in ${listener.restoredTime}ms`)
return new ExtractedCacheEntry(artifactType, pattern, cacheKey)
} else {
core.info(`Did not restore ${artifactType} with key ${cacheKey} to ${pattern}`)
@@ -233,7 +232,6 @@ abstract class AbstractEntryExtractor {
entryListener.markNotSaved('contents unchanged')
} else {
await saveCache([pattern], cacheKey, entryListener)
core.info(`Saved ${artifactType} with key ${cacheKey} from ${pattern} in ${entryListener.savedTime}ms`)
}
for (const file of matchingFiles) {