Skip to content

Commit

Permalink
Update use of console.log to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric authored and letzya committed Mar 28, 2024
1 parent 66af1a7 commit cbd1049
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cbd1049

Please sign in to comment.