Skip to content

Commit

Permalink
v1.2.1. Minor bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Feb 13, 2017
1 parent c58f1d9 commit 8642e59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snooplogg",
"version": "1.2.0",
"version": "1.2.1",
"description": "Your mind on your logs and your logs on your mind",
"main": "./dist/index.js",
"author": "Chris Barber <[email protected]> (https://github.com/cb1kenobi)",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class SnoopLogg extends Logger {
// add the message to the buffer
this._buffer.push(msg);

if (msg.enabled) {
if ((msg.id === this._id && msg.enabled) || (msg.id !== this._id && this.isEnabled(msg.ns))) {
for (const s of this._streams) {
msg.formatter = this._themes[s.theme] || this._themes[this._defaultTheme];
s.stream.write(s.stream._writableState && s.stream._writableState.objectMode ? msg : format(msg));
Expand Down

0 comments on commit 8642e59

Please sign in to comment.