Move backup logs to make the REST API work

This commit is contained in:
Girish Ramakrishnan
2018-06-15 09:17:10 -07:00
parent b3fa5afe3a
commit 1c32224a8a
3 changed files with 6 additions and 4 deletions

View File

@@ -366,7 +366,7 @@ function getLogs(unit, options, callback) {
source: obj.SYSLOG_IDENTIFIER || ''
}) + '\n';
});
} else { // mail, mongodb, mysql, postgresql
} else { // mail, mongodb, mysql, postgresql, backup
let args = [ '--lines=' + lines ];
if (follow) args.push('--follow');
args.push(path.join(paths.LOG_DIR, unit, 'app.log'));