Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added server debug information to double check the amount of workers #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -33,6 +33,9 @@ async function main(options) {

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.

2 participants