Skip to content

Commit

Permalink
We don't need to change these messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakepruitt committed Jul 2, 2018
1 parent 87f061f commit a3c521e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/logger.js
Expand Up @@ -31,11 +31,11 @@ class Logger {
}

workerFailure(results) {
this.log(`[watchbot] [failure] ${JSON.stringify(results)}`);
this.log(`[failure] ${JSON.stringify(results)}`);
}

workerError(err) {
this.log(`[error] [watchbot] ${err.message}`);
this.log(`[error] [worker] ${err.message}`);
}

queueError(err) {
Expand Down
4 changes: 2 additions & 2 deletions test/logger.test.js
Expand Up @@ -103,7 +103,7 @@ test('[logger] workerFailure', (assert) => {
const data = process.stdout.write.args[0][0];
assert.equal(
data,
'[Fri, 09 Feb 2018 21:57:55 GMT] [watcher] [895ab607-3767-4bbb-bd45-2a3b341cbc46] [watchbot] [failure] {"code":124,"signal":"SIGTERM","duration":12345}\n',
'[Fri, 09 Feb 2018 21:57:55 GMT] [watcher] [895ab607-3767-4bbb-bd45-2a3b341cbc46] [failure] {"code":124,"signal":"SIGTERM","duration":12345}\n',
'expected message'
);

Expand All @@ -124,7 +124,7 @@ test('[logger] workerError', (assert) => {
const data = process.stdout.write.args[0][0];
assert.equal(
data,
'[Fri, 09 Feb 2018 21:57:55 GMT] [watcher] [895ab607-3767-4bbb-bd45-2a3b341cbc46] [error] [watchbot] foo\n',
'[Fri, 09 Feb 2018 21:57:55 GMT] [watcher] [895ab607-3767-4bbb-bd45-2a3b341cbc46] [error] [worker] foo\n',
'expected message'
);

Expand Down

0 comments on commit a3c521e

Please sign in to comment.