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

Built-in logger 'logger.debug' doesn't print anything in Node 8 #88

Closed
tiaod opened this issue Aug 25, 2017 · 1 comment
Closed

Built-in logger 'logger.debug' doesn't print anything in Node 8 #88

tiaod opened this issue Aug 25, 2017 · 1 comment

Comments

@tiaod
Copy link
Contributor

tiaod commented Aug 25, 2017

Before Node 8, console.debug is undefined.

Now using node v6.11.2 (npm v3.10.10)      
> console.debug('hello')                                     
TypeError: console.debug is not a function            

It will default to baseLogger["info"]
https://github.com/ice-services/moleculer/blob/943ce4724b054284c1051ebad7244e0755bd8759/src/logger.js#L87
However, in Node 8, console.debug is exposed and doesn't print anything.

Now using node v8.4.0 (npm v5.3.0)       
> console.debug                   
[Function: debug]                 
> console.debug('hello world')    
undefined                         
> 

So the logger.debug is not working anymore.

Maybe relate to: nodejs/node#12675

@icebob
Copy link
Member

icebob commented Aug 25, 2017

Thank you!

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

No branches or pull requests

2 participants