Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit bbb2838

Browse files
chore: streamline logging
1 parent 88a2d81 commit bbb2838

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/job-manager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class JobManager {
4242
}
4343

4444
createWorker () {
45-
console.log('JobManager creating worker at:', nodeBin, this.workerPath);
4645
let nodeBin = Config.get('nodeBin');
46+
console.debug('JobManager creating worker at:', nodeBin, this.workerPath);
4747
this.killWorker();
4848

4949
// We should not try to start the worker without testing the value we have
@@ -101,7 +101,7 @@ class JobManager {
101101

102102
receiveMessage (data) {
103103
if (data.log) {
104-
console.log('WORKER LOG:', data.log);
104+
console.debug('WORKER LOG:', data.log);
105105
return;
106106
}
107107
let key = data.key;
@@ -138,7 +138,7 @@ class JobManager {
138138
async send (bundle) {
139139
let key = generateKey();
140140
bundle.key = key;
141-
console.log('JobManager#send:', bundle);
141+
console.debug('JobManager#send:', bundle);
142142
try {
143143
this.ensureWorker();
144144
} catch (err) {

spec/linter-eslint-node-spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ function getNotification(expectedMessage) {
4444
* @param {Promise<import("atom").Notification>} notification
4545
*/
4646
const newNotification = (notification) => {
47-
console.warn(`Got a notification with text:`, notification.getMessage());
48-
console.warn(`We want it to have text:`, expectedMessage);
4947
if (notification.getMessage() !== expectedMessage) {
5048
// As the specs execute asynchronously, it's possible a notification
5149
// from a different spec was grabbed, if the message doesn't match what
@@ -95,7 +93,6 @@ async function makeFixes(textEditor, expectedFixCount) {
9593
await atom.commands.dispatch(atom.views.getView(textEditor), 'linter-eslint-node:fix-file');
9694

9795
const notification = await notificationPromise;
98-
console.log('THE MESSAGE IS NOW:', notification.getMessage());
9996
expect(notification.getMessage()).toBe(expectedMessage);
10097
expect(notification.getType()).toBe('success');
10198

0 commit comments

Comments
 (0)