From 0e2f793aa4e6239695a94c6ae6ff7441a5028c2e Mon Sep 17 00:00:00 2001 From: Shazron Abdullah <36107+shazron@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:45:56 +0800 Subject: [PATCH] fix: needle debug env var is outdated The needle dependency uses node's built in util.debuglog function for logging, and setting the env var will display those debug logs. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa07225..b25ca73 100644 --- a/README.md +++ b/README.md @@ -619,10 +619,10 @@ Swagger parameter must be a well-formed JSON string, containing a valid Swagger ## Debugging -Setting an environment parameter (`DEBUG=needle`) will dump the HTTP requests from the client library and responses received to `stderr`. +Setting an environment parameter (`NODE_DEBUG=needle`) will dump the HTTP requests from the client library and responses received to `stderr`. ```bash -DEBUG=needle node script.js +NODE_DEBUG=needle node script.js ``` This parameter can also be set dynamically at runtime, provided this happens before the `openwhisk` module is required.