Add better backup logs

This commit is contained in:
Girish Ramakrishnan
2018-03-20 16:41:32 -07:00
parent dd296544be
commit 565eed015f
2 changed files with 11 additions and 5 deletions

View File

@@ -141,7 +141,7 @@ function upload(apiConfig, backupFilePath, sourceStream, callback) {
// uploader will buffer at most queueSize * partSize bytes into memory at any given time.
s3.upload(params, { partSize: 10 * 1024 * 1024, queueSize: 1 }, function (error) {
if (error) {
debug('[%s] upload: s3 upload error.', backupFilePath, error);
debug('Error uploading [%s]: s3 upload error.', backupFilePath, error);
return callback(new BackupsError(BackupsError.EXTERNAL_ERROR, `Error uploading ${backupFilePath}. Message: ${error.message} HTTP Code: ${error.code}`));
}