mirror of
https://github.com/Swatinem/rust-cache
synced 2025-04-15 00:28:43 +00:00
add logging
This commit is contained in:
parent
3faf29c29b
commit
3c291936b0
|
@ -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];
|
||||
|
|
|
@ -50,6 +50,7 @@ async function run() {
|
|||
core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`);
|
||||
|
||||
if (config.incremental) {
|
||||
core.debug("restoring incremental builds");
|
||||
for (const workspace of config.workspaces) {
|
||||
await restoreIncremental(workspace.target);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue