Skip to content

Conversation

@Hoxolotl
Copy link

Needed to make sure I had the correct amount set to maxWorkers in the options. Added some debug information in the console so it displays on server start.


server.use(express.static(wwwroot))

console.log("Debug information:")
Copy link
Member

@Potherca Potherca Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am in favor of adding something to logging when the server starts, and I think this is a good start!1

To distinguish from development "logs", I would prefer if process.stdout were used.2

process.stdout.write(`"Debug information:"
maxworkers: ", maxWorkers
)

Footnotes

  1. @poef Is there any other information that is also relevant to output here?

  2. Maybe good to know, console.log uses process (stdout or stderr, depending on use-case)` itself.

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.

3 participants