fedwiki / wiki-server

Federated Wiki client and server in Node.js
Other
153 stars 35 forks source link

Console output in Farm Mode does not expose Request Hosts #132

Closed almereyda closed 3 months ago

almereyda commented 7 years ago

As a wiki farm operator, during debugging I want to distinguish which requests target which domain. Currently it is not possible to tell which hosts the process output refers to:

owner: 
[ 'add-text' ]
starting plugin wiki-plugin-plugmatic
GET /favicon.png?replaceTemp 200 655 - 1.392 ms
HEAD / 302 86 - 2.673 ms
[ 'welcome-visitors' ]
HEAD /welcome-visitors.html 200 4093 - 21.731 ms
removing sitemap from memory
rejecting /page/welcome-visitors/action
PUT /page/welcome-visitors/action 403 9 - 2.818 ms
Logout...
GET /logout 200 2 - 3.202 ms
paul90 commented 7 years ago

A nice little exercise for somebody, the associated lines of code in the server are https://github.com/fedwiki/wiki-server/blob/master/lib/server.coffee#L178-L180

WardCunningham commented 7 years ago

The "forman" job control software does a good job of interleaving log output.

foreman_screenshot_1

I suggest color coding requests from a specific site so as to distinguish it from others and system messages which deserve their own color.

almereyda commented 3 months ago

Can't wait to test it!

Sorry I didn't figure it out earlier.

Maybe I'm now experienced enough to add these colours, if not included in the recent iteration?