Skip to content

Commit

Permalink
fix(node): add missing console.trace
Browse files Browse the repository at this point in the history
Fixes TIMOB-27808
  • Loading branch information
janvennemann authored and sgtcoolguy committed Mar 23, 2020
1 parent aa1d92c commit 83a64a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/Resources/ti.internal/extensions/js/console.js
Expand Up @@ -87,7 +87,7 @@ class Console {
this._apiModule[level](string);
} else {
// Support Node.JS streams like stdout/stderr which don't have log levels
const useStdErr = (level === 'warn' || level === 'error');
const useStdErr = (level === 'warn' || level === 'error' || level === 'trace');
const stream = useStdErr ? this._stderr : this._stdout;

if (this._ignoreErrors === false) {
Expand Down Expand Up @@ -134,6 +134,10 @@ class Console {
this._writeToConsole('debug', formatWithOptions(kColorInspectOptions, ...args));
}

trace(...args) {
this._writeToConsole('trace', formatWithOptions(kColorInspectOptions, ...args));
}

clear() {} // no-op

group(...data) {
Expand Down

0 comments on commit 83a64a1

Please sign in to comment.