From 114b2a21cd90cdbd28de2a42e434c0fd2f5769cb Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 12 Oct 2025 20:56:38 +0200 Subject: [PATCH] fix: remove stack traces from non-debug output --- lib/verbosity.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/verbosity.js b/lib/verbosity.js index d52b77c8..d14a7f3a 100644 --- a/lib/verbosity.js +++ b/lib/verbosity.js @@ -18,6 +18,9 @@ export function setVerbosityFromEnv() { if (Object.keys(VERBOSITY).includes(env)) { verbosity = VERBOSITY[env]; } + if (!isDebugVerbosity()) { + Error.stackTraceLimit = 0; + } }; export function debuglog(...args) {