From b19b91f9c1609b6119b24dd1f762930bff891f28 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 8 Nov 2024 19:44:23 +1100 Subject: [PATCH] lint --- lib/logger.js | 1 + lib/tryboot.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logger.js b/lib/logger.js index 644238d76..145304dce 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -13,6 +13,7 @@ class Logger { pretty: flags.log }) } + constructor ({ labels, fields, stacks = false, level, pretty = false } = {}) { labels = constants.PLATFORM_CHANNEL === 'prod' ? (labels ?? '') : 'run,sidecar,session' fields = constants.PLATFORM_CHANNEL === 'prod' ? (fields ?? '') : 'level,date,time,label,delta' diff --git a/lib/tryboot.js b/lib/tryboot.js index 82278dbf3..4349ac076 100644 --- a/lib/tryboot.js +++ b/lib/tryboot.js @@ -21,7 +21,7 @@ module.exports = function tryboot () { if (flags.logLabels) args.push('--log-labels', flags.logLabels) if (flags.logStacks) args.push('--log-stacks') if (args.length > length) detached = false - + const sc = spawn(RUNTIME, args, { detached, stdio: detached ? 'ignore' : 'inherit', cwd: PLATFORM_DIR }) sc.unref() }