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.
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.