Skip to content

Commit

Permalink
Add debug logging for the new send method
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomashamalainen committed Dec 14, 2020
1 parent 3836361 commit dd1d0b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Beocreate2/beo-system/common/scripts/beo-comms.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ function sendToProduct(target, header, content = undefined) {
} else {
// Legacy way of sending data, supported. 'Header' used to be 'data'.
header.target = target;
if (debug > 1) console.log(target, header.header, header.content);
send(header);
}
}
Expand Down

0 comments on commit dd1d0b5

Please sign in to comment.