Skip to content

Instantly share code, notes, and snippets.

@styks1987
Created October 23, 2018 15:24
Show Gist options
  • Save styks1987/092a7c42ff0b2c3f9fed634bbdb0e527 to your computer and use it in GitHub Desktop.
Save styks1987/092a7c42ff0b2c3f9fed634bbdb0e527 to your computer and use it in GitHub Desktop.
this.loggerStream.on('data', message => {
if (message[Symbol.for('level')] == 'error') {
} else {
this.setState(update(this.state, {log: {$push: [[message.message]]}}));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment