Skip to content

Commit

Permalink
Fixing live reporting errs (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
danitseitlin authored Mar 17, 2021
1 parent c9a76a5 commit bb3a52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ exports['default'] = () => {
process.stdout.write(d + '\n');
})
};
console.error = function (d) {
console.error = d => {
(async() => this.captureLogs(this.client.test.id, 'error', d, new Date().valueOf()))().then(d => {
process.stdout.write(d + '\n');
})
};
console.warning = function (d) {
console.warning = d => {
(async() => this.captureLogs(this.client.test.id, 'warning', d, new Date().valueOf()))().then(d => {
process.stdout.write(d + '\n');
})
};
console.debug = function (d) {
console.debug = d => {
(async() => this.captureLogs(this.client.test.id, 'debug', d, new Date().valueOf()))().then(d => {
process.stdout.write(d + '\n');
})
Expand Down

0 comments on commit bb3a52e

Please sign in to comment.