Skip to content

Commit a676459

Browse files
committed
debug getLayerIds
1 parent fcee27c commit a676459

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/LayerCache.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class LayerCache {
174174
private async restoreLayers() {
175175
const restoring = (await this.getLayerIds()).map(layerId => this.restoreSingleLayerBy(layerId))
176176
const restoredLayerKeysThatMayContainUndefined = await Promise.all(restoring)
177-
core.debug(JSON.stringify({ hasRestored: restoredLayerKeysThatMayContainUndefined }))
177+
core.debug(JSON.stringify({ restoredLayerKeysThatMayContainUndefined }))
178178
const FailedToRestore = (restored: string | undefined) => restored === undefined
179179
return restoredLayerKeysThatMayContainUndefined.filter(FailedToRestore).length === 0
180180
}
@@ -245,7 +245,9 @@ class LayerCache {
245245

246246
async getLayerIds(): Promise<string[]> {
247247
const getIdfromLayerRelativePath = (path: string) => path.replace('/layer.tar', '')
248-
return (await this.getLayerTarFiles()).map(getIdfromLayerRelativePath)
248+
const layerIds = (await this.getLayerTarFiles()).map(getIdfromLayerRelativePath);
249+
core.debug(JSON.stringify({ log: `loadLayerTarIds`, layerIds }))
250+
return layerIds
249251
}
250252
}
251253

0 commit comments

Comments
 (0)