Skip to content

Commit

Permalink
enable logging in checkStudent.worker
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Sep 21, 2018
1 parent 562e9cc commit a5afce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gob-worker-check-student/index.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ if (
.then(result => {
self.postMessage(JSON.stringify([id, 'result', result]))
const taken = round(present() - start)
log(`(${student.name}, ${area.name}) took ${taken} ms`)
console.log(`(${student.name}, ${area.name}) took ${taken} ms`)
})
.catch(err => {
self.postMessage(
JSON.stringify([id, 'error', stringifyError(err)]),
)
log(`(${student.name}, ${area.name})`, err)
console.warn(`(${student.name}, ${area.name})`, err)
})
})
}
Expand Down

0 comments on commit a5afce5

Please sign in to comment.