Support new platform/addon log style

This commit is contained in:
Johannes Zellner
2018-06-11 20:09:38 +02:00
parent c2ca827458
commit 177243b7f2
4 changed files with 27 additions and 28 deletions
+3
View File
@@ -822,6 +822,9 @@ function getLogs(appId, options, callback) {
format = options.format || 'json',
follow = !!options.follow;
assert.strictEqual(typeof lines, 'number');
assert.strictEqual(typeof format, 'string');
var args = [ '--lines=' + lines ];
if (follow) args.push('--follow');
args.push(path.join(paths.LOG_DIR, appId, 'app.log'));