You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using SPDY server for HTTP/2 for my React.JS / Next.JS application. Unfortunately this solution needs to use Express.JS and therefore this is what I do to have request logging:
There's not enough code here to tell. Morgan reads req.user etc to populate this field. If the requet doesn't have that set when the logs are generated, it will be empty.
You need to have auth setup in you express app and popualate that field if you want to log it.
But since you are handing the request off to Next, it can modify the req object however it wants. So no guarantee that req.user is set unless you are setting it yourself or next is.
I am using SPDY server for HTTP/2 for my React.JS / Next.JS application. Unfortunately this solution needs to use Express.JS and therefore this is what I do to have request logging:
The log shows that ALL users are
-
. How can I have the logged in user in that logging field?The text was updated successfully, but these errors were encountered: