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

Rabbot duplicates bole output in debug mode #171

Open
mariusmarais opened this issue Aug 10, 2018 · 0 comments
Open

Rabbot duplicates bole output in debug mode #171

mariusmarais opened this issue Aug 10, 2018 · 0 comments

Comments

@mariusmarais
Copy link

The combination of bole and debug works quite well for a simple logger, and it's used quite often.

Unfortunately rabbot automatically configures bole.output when loaded, causing debug messages to appear twice if another bole.output is called by another library or the app itself.

Would it be possible to not configure bole output automatically or make it more clever?

Had a couple of hours of fun trying to figure out why callbacks are always called twice... turns out only the logs were duplicated.

Workaround in an early hook script:

// Load rabbot early since it messes with bole
require('rabbot');
require('bole').reset();
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