summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-30 11:34:50 -0400
committerGitHub <noreply@github.com>2023-05-30 15:34:50 +0000
commit3b69d238cdedc7f47515ba74f2366724679c5c7d (patch)
tree016643f2551b53270f7af35a69e457ba74f91173 /runtime/js/99_main.js
parentacc6cdc0b1c0fae5e0fba3b0110f96119c2139f7 (diff)
feat(runtime): add `WorkerLogLevel` (#19316)
This is not really used yet, but provides some infrastructure for doing more fine grained logging in JS. I will add warn messages in a future PR.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 91d34272f..8fd9a6bd9 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -299,7 +299,7 @@ function runtimeStart(
v8Version,
tsVersion,
target,
- debugFlag,
+ logLevel,
noColor,
isTty,
source,
@@ -315,7 +315,7 @@ function runtimeStart(
tsVersion,
);
core.setBuildInfo(target);
- util.setLogDebug(debugFlag, source);
+ util.setLogLevel(logLevel, source);
setNoColor(noColor || !isTty);
// deno-lint-ignore prefer-primordials
Error.prepareStackTrace = core.prepareStackTrace;
@@ -428,7 +428,7 @@ function bootstrapMainRuntime(runtimeOptions) {
const {
0: args,
1: cpuCount,
- 2: debugFlag,
+ 2: logLevel,
3: denoVersion,
4: locale,
5: location_,
@@ -495,7 +495,7 @@ function bootstrapMainRuntime(runtimeOptions) {
v8Version,
tsVersion,
target,
- debugFlag,
+ logLevel,
noColor,
isTty,
);
@@ -542,7 +542,7 @@ function bootstrapWorkerRuntime(
const {
0: args,
1: cpuCount,
- 2: debugFlag,
+ 2: logLevel,
3: denoVersion,
4: locale,
5: location_,
@@ -610,7 +610,7 @@ function bootstrapWorkerRuntime(
v8Version,
tsVersion,
target,
- debugFlag,
+ logLevel,
noColor,
isTty,
internalName ?? name,