Skip to content

Commit

Permalink
Fix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Feb 15, 2019
1 parent 10bc8e3 commit a34143b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/lib/matrix.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import chalk from 'chalk'

/**
* Message routing and formatting matrix.
* @private
* @type {Object}
*/
export default function matrix(sOut, sErr) {
return {
debug: {
Expand Down
7 changes: 0 additions & 7 deletions src/lib/verbosity.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default class Verbosity extends Console {
})(errorStream ? errorStream : sOut)

super(sOut, sErr)

this.willEmit = Boolean(namespace)

this.timeFormatter = (ts => ts ?
Expand All @@ -71,12 +70,6 @@ export default class Verbosity extends Console {
this._stderr = sErr
this.threshold = verbosity ? verbosity : 3
this.emitter = this.willEmit && sparkles(namespace)

/**
* Message routing and formatting matrix.
* @private
* @type {Object}
*/
this.matrix = matrix(sOut, sErr)
}

Expand Down

0 comments on commit a34143b

Please sign in to comment.