Skip to content

Remove worker_threads warning on initial import #202

@twelch

Description

@twelch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions