Eneris / push-receiver

A library to subscribe to GCM/FCM and receive notifications within a node process.
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
16 stars 16 forks source link

Respect debug config #21

Closed dgreif closed 4 months ago

dgreif commented 4 months ago

A new debug: boolean option was added in v4, but it doesn't look like the config is actually respected currently. Instead, all debug message are logged regardless of the config. This PR fixes that by checking the config before logging debug messages, and by properly configuring the logger upon instantiation.

Eneris commented 4 months ago

Looking good. Thanks for the catch! :)