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

Avoid disabling of hook on log #43

Closed
wants to merge 1 commit into from
Closed

Conversation

badeball
Copy link

This allows a user to log active handlers multiple times during a programs lifetime.

Related to #42.

This allows a user to log active handlers multiple times during a
programs lifetime.
logger.error('There are %d handle(s) keeping the process running', active.size)
for (const o of active.values()) printStacks(o)
Copy link
Owner

Choose a reason for hiding this comment

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

why is this change needed?

Copy link
Author

Choose a reason for hiding this comment

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

To be honest, I'm not really sure anymore. Given that printStacks is synchronous, I would assume it to make absolutely no difference because of the single-threaded nature, but I somehow distinctly remember that it did. I'm no longer working on the same project, so I unfortunately can't reproduce it.

@mafintosh mafintosh closed this Apr 25, 2022
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