Add debug on what backup is preserved

This commit is contained in:
Girish Ramakrishnan
2017-06-01 09:38:39 -07:00
parent 4e0bb9187a
commit 986ec02ac6

View File

@@ -512,8 +512,11 @@ function cleanupBoxBackups(backupConfig, callback) {
// keep the first valid backup
if (i !== boxBackups.length) {
debug('cleanup: preserving box backup %j', boxBackups[i]);
referencedAppBackups = boxBackups[i].dependsOn;
boxBackups.splice(i, 1);
} else {
debug('cleanup: no box backup to preserve');
}
async.eachSeries(boxBackups, function iterator(backup, iteratorDone) {