3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-18 02:42:18 +00:00

add logging

This commit is contained in:
Jonathan Kelley 2025-01-28 18:22:39 -08:00
parent 3faf29c29b
commit 3c291936b0
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
2 changed files with 3 additions and 0 deletions

View file

@ -38,6 +38,8 @@ async function restoreIncrementalProfile(dirName: string) {
const contents = await fs.promises.readFile(incrementalJson, "utf8");
const { modifiedTimes } = JSON.parse(contents);
core.debug(`restoring incremental profile directory "${dirName}" with ${modifiedTimes} files`);
// Write the mtimes to all the files in the profile directory
for (const fileName of Object.keys(modifiedTimes)) {
const mtime = modifiedTimes[fileName];