Cannot pass Implement a Root-Level Request Logger Middleware task no. 7

Tell us what’s happening:
Hi,

I am on task 7 which is the Implement a Root-Level Request Logger Middleware and I can’t pass the test.

Here is my code

app.use((req, res, next) =>  {
  const reqstring= `${req.method}  ${req.path} - ${req.ip}`;
  console.log(reqstring);
  next();
});

I’m using replit for this test.

Your project link(s)

solution: https://replit.com/@jkevinturado/boilerplate-express-1

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36

Challenge: Implement a Root-Level Request Logger Middleware

Link to the challenge:

Hi, I figured it out already, We have just to comment out all the code from pass task and submit.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.