Skip to content

Commit 687217f

Browse files
authored
fix: remove stack traces from non-debug output (#990)
1 parent 48a418b commit 687217f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/verbosity.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export function setVerbosityFromEnv() {
1818
if (Object.keys(VERBOSITY).includes(env)) {
1919
verbosity = VERBOSITY[env];
2020
}
21+
if (!isDebugVerbosity()) {
22+
Error.stackTraceLimit = 0;
23+
}
2124
};
2225

2326
export function debuglog(...args) {

0 commit comments

Comments
 (0)