Skip to content

Conversation

@paul90
Copy link
Member

@paul90 paul90 commented Jan 25, 2026

defining morgan token is problematic. It wrongly reports requests are all to the last wiki server started.

defining morgan token is problematic. It wrongly reports requests are all to the last wiki server started
@WardCunningham
Copy link
Member

What is a morgan token?
See https://expressjs.com/en/resources/middleware/morgan.html

@WardCunningham
Copy link
Member

The Morgan API doc says:

The format function will be called with three arguments tokens, req, and res, where tokens is an object with all defined tokens, req is the HTTP request and res is the HTTP response. The function is expected to return a string that will be the log line, or undefined / null to skip logging.

This must be part of the Express middleware that I don't fully understand. I'd like to know more but don't let my ignorance hold up this useful correction.

@paul90 paul90 merged commit 544717c into main Jan 31, 2026
4 checks passed
@paul90 paul90 deleted the log-fix branch January 31, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants