Skip to content

Commit

Permalink
Refine debug log message
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 13, 2017
1 parent 45c1262 commit 4502b06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/cncengine/CNCEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class CNCEngine {
});

socket.on('write', (port, data, context = {}) => {
log.debug(`socket.write("${port}", "${data}", ${context}): id=${socket.id}`);
log.debug(`socket.write("${port}", "${data}", ${JSON.stringify(context)}): id=${socket.id}`);

const controller = store.get(`controllers["${port}"]`);
if (!controller || controller.isClose()) {
Expand All @@ -290,7 +290,7 @@ class CNCEngine {
});

socket.on('writeln', (port, data, context = {}) => {
log.debug(`socket.writeln("${port}", "${data}", ${context}): id=${socket.id}`);
log.debug(`socket.writeln("${port}", "${data}", ${JSON.stringify(context)}): id=${socket.id}`);

const controller = store.get(`controllers["${port}"]`);
if (!controller || controller.isClose()) {
Expand Down

0 comments on commit 4502b06

Please sign in to comment.