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

debug text is red #557

Closed
zatziky opened this issue Mar 14, 2018 · 4 comments
Closed

debug text is red #557

zatziky opened this issue Mar 14, 2018 · 4 comments

Comments

@zatziky
Copy link

zatziky commented Mar 14, 2018

Do you have any idea why is the text color of debug(...) always red?

image

I can't find any option that could influence the text color. Is it only our project? Here is how we use it:

const debug = require('debug')('amio-websocket:db-connector')

debug('Connection to MongoDB is open now.')
@jacobq
Copy link

jacobq commented Mar 16, 2018

This is not the behavior I see in my application. Perhaps some other tool in/around your application is setting the color and debug is just using whatever previous color was set?

@TooTallNate
Copy link
Contributor

Are you running it through Docker? Docker colors stderr output as red.

@Qix-
Copy link
Member

Qix- commented Mar 20, 2018

Many things output stderr as red. This is not something we can fix, sorry.

@Qix- Qix- closed this as completed Mar 20, 2018
@zatziky
Copy link
Author

zatziky commented Mar 20, 2018

@TooTallNate @jacobq No, I'm running it using from Jetbrains PhpStorm. It really has something to do with the IDE. If I use their npm module then all the text colors are red. When using npm run-script ... or npm run ... the color is black:
image

I'll raise a bug in Jetbrains. Thank you for your questions. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants