backuptask: improve the debugs
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user