From f9f3b3ebc0322a07e5415eeca52dd7c3efe341f0 Mon Sep 17 00:00:00 2001 From: Martin Sefcik Date: Tue, 10 Oct 2023 12:24:28 +0200 Subject: [PATCH 1/2] feat(#507): added support for debug level for console logging in scripts --- packages/bruno-js/src/runtime/script-runtime.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bruno-js/src/runtime/script-runtime.js b/packages/bruno-js/src/runtime/script-runtime.js index 910c7df43..391d047d5 100644 --- a/packages/bruno-js/src/runtime/script-runtime.js +++ b/packages/bruno-js/src/runtime/script-runtime.js @@ -71,6 +71,7 @@ class ScriptRuntime { }; context.console = { log: customLogger('log'), + debug: customLogger('debug'), info: customLogger('info'), warn: customLogger('warn'), error: customLogger('error') From fcbecfb480eab5ab350f8801c256291b8e79bb84 Mon Sep 17 00:00:00 2001 From: bacebu4 <32079387+bacebu4@users.noreply.github.com> Date: Thu, 12 Oct 2023 09:57:33 +0200 Subject: [PATCH 2/2] fix(bruno-cli): add missing variable to `prepareRequest` --- packages/bruno-cli/src/runner/run-single-request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index 082c3d416..ee67f60b3 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -30,7 +30,7 @@ const runSingleRequest = async function ( try { let request; - request = prepareRequest(bruJson.request); + request = prepareRequest(bruJson.request, collectionRoot); const scriptingConfig = get(brunoConfig, 'scripts', {});