From cbd1049a58a279b7ab1ca9d0569da0992418e092 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Fri, 22 Mar 2024 19:23:16 +0100 Subject: [PATCH] Update use of console.log to log --- .../javascript-middleware/middleware-scripting-guide.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tyk-docs/content/plugins/supported-languages/javascript-middleware/middleware-scripting-guide.md b/tyk-docs/content/plugins/supported-languages/javascript-middleware/middleware-scripting-guide.md index 0323ef657c..34c182ea43 100755 --- a/tyk-docs/content/plugins/supported-languages/javascript-middleware/middleware-scripting-guide.md +++ b/tyk-docs/content/plugins/supported-languages/javascript-middleware/middleware-scripting-guide.md @@ -248,8 +248,7 @@ var sampleMiddleware = new TykJS.TykMiddleware.NewMiddleware({}); // Initialise the object with your functionality by passing a closure that accepts // two objects into the NewProcessRequest() function: sampleMiddleware.NewProcessRequest(function(request, session, config) { - - console.log("This middleware does nothing, but will print this to your terminal.") + log("This middleware does nothing, but will print this to your terminal.") // You MUST return both the request and session metadata return sampleMiddleware.ReturnData(request, session.meta_data);