Display apptask logs
This commit is contained in:
@@ -826,8 +826,9 @@ function getLogs(appId, options, callback) {
|
||||
assert.strictEqual(typeof format, 'string');
|
||||
|
||||
var args = [ '--lines=' + lines ];
|
||||
if (follow) args.push('--follow');
|
||||
if (follow) args.push('--follow', '--retry'); // same as -F. to make it work if file doesn't exist
|
||||
args.push(path.join(paths.LOG_DIR, appId, 'app.log'));
|
||||
args.push(path.join(paths.LOG_DIR, appId, 'apptask.log'));
|
||||
|
||||
var cp = spawn('/usr/bin/tail', args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user