backuptask: improve the debugs

This commit is contained in:
Girish Ramakrishnan
2025-07-14 15:01:30 +02:00
parent 56da5493b3
commit 26637c0f1c
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ async function download(backupConfig, remotePath, format, dataLayout, progressCa
assert(dataLayout instanceof DataLayout, 'dataLayout must be a DataLayout');
assert.strictEqual(typeof progressCallback, 'function');
debug(`download: Downloading ${remotePath} of format ${format} to ${dataLayout.toString()}`);
debug(`download: Downloading ${remotePath} of format ${format} (encrypted: ${!!backupConfig.encryption}) to ${dataLayout.toString()}`);
await backupFormat.api(format).download(backupConfig, remotePath, dataLayout, progressCallback);
}
@@ -120,7 +120,7 @@ async function restore(backupConfig, remotePath, progressCallback) {
await database.importFromFile(`${dataLayout.localRoot()}/box.mysqldump`);
debug('restore: database imported');
await locks.releaseAll();
await locks.releaseAll(); // clear the locks table in database
}
async function downloadApp(app, restoreConfig, progressCallback) {