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

Remove worker_threads warning on initial import #202

Open
twelch opened this issue May 31, 2023 · 1 comment
Open

Remove worker_threads warning on initial import #202

twelch opened this issue May 31, 2023 · 1 comment

Comments

@twelch
Copy link

twelch commented May 31, 2023

Is your feature request related to a problem? Please describe.
We primarily use geoblaze in a node environment and it always produces the following warning when we import it.

> const geoblaze = require('geoblaze')
Node worker_threads not available. Trying to fall back to tiny-worker polyfill...
undefined
> 

It also seems to output an extra undefined message that I don't remember in the past. I don't know if that's something in a new version of the library, or if it has to do with my now use of node v16.16.0

Describe the solution you'd like
I would like to request that these messages be turned off or silenced by default Perhaps it could be removed altogether or put behind a debug/loglevel flag, etc. What happens is this message ends up in our server logs. In addition, we publish a library that uses geoglaze and when users of our library import our library they also get this message.

cc @DanielJDufour

@twelch
Copy link
Author

twelch commented May 31, 2023

the undefined seems to only appear when importing directly in the node REPL. Doesn't seem to appear otherwise so can possibly be ignored, and would just disappear if the first message did

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

No branches or pull requests

1 participant