Compare commits

...

1 Commits

Author SHA1 Message Date
bbuchanan9 42c7cbce20 squash: add more logs to batch delete 2019-04-03 15:14:25 -07:00
1 changed files with 3 additions and 3 deletions

View File

@ -913,7 +913,7 @@ function batchDelete(request, response, log, callback) {
return _performConditionalDelete( return _performConditionalDelete(
request, response, locations, log, callback); request, response, locations, log, callback);
} }
log.trace('batch delete locations', { locations }); log.info('batch delete locations', { locations });
return async.eachLimit(locations, 5, (loc, next) => { return async.eachLimit(locations, 5, (loc, next) => {
const _loc = Object.assign({}, loc); const _loc = Object.assign({}, loc);
if (_loc.dataStoreVersionId !== undefined) { if (_loc.dataStoreVersionId !== undefined) {
@ -932,14 +932,14 @@ function batchDelete(request, response, log, callback) {
}); });
}, err => { }, err => {
if (err) { if (err) {
log.error('batch delete failed', { log.info('batch delete failed', {
method: 'batchDelete', method: 'batchDelete',
locations, locations,
error: err, error: err,
}); });
return callback(err); return callback(err);
} }
log.debug('batch delete successful', { locations }); log.info('batch delete successful', { locations });
return _respond(response, null, log, callback); return _respond(response, null, log, callback);
}); });
}); });