trentm/node-bunyan — Issue #5: trace/debug/info/error/fatal checks are broken in 0.6.3 (at least)
Author: mcavage
Created: 2012-02-19 06:38:31+00:00
State: open

Yo,

So you have say this (this is in all the trace/debug/.. methods):

https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L867

But level is a function on the prototype:

https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L458

So the 'enabled' checks all fail, but so does logging itself, since you're checking against `this.level`, not `this.level()` or `this._level`.

Freaked me out why I wasn't seeing anything :)

m