Skip to content

Commit

Permalink
LOG: console log all received response
Browse files Browse the repository at this point in the history
jeremy-jung committed Dec 11, 2020
1 parent ee1261d commit f70c828
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions server/examples/modules/ServiceDock_SPIKE.js
Original file line number Diff line number Diff line change
@@ -3540,14 +3540,17 @@ function Service_SPIKE() {
getFirmwareInfoCallback[1](stringVersion);
}
}
if (parsedUJSON.r !== undefined && parsedUJSON.r !== null) {
if (Object.keys(parsedUJSON.r).length !== 0 && parsedUJSON.r.constructor === Object) {
console.log("%cTuftsCEEO ", "color: #3ba336;", "received response: ", lastUJSONRPC);
}
}
else {
console.log("%cTuftsCEEO ", "color: #3ba336;", "received response: ", lastUJSONRPC);
}
// COMMENTED BY JEREMY JUNG ON DECEMBER 10TH AFTER REMOVING TRIGGER_CURRENT_STATE INTERVAL
// if (parsedUJSON.r !== undefined && parsedUJSON.r !== null) {
// if (Object.keys(parsedUJSON.r).length !== 0 && parsedUJSON.r.constructor === Object) {
// console.log("%cTuftsCEEO ", "color: #3ba336;", "received response: ", lastUJSONRPC);
// }
// }
// else {
// console.log("%cTuftsCEEO ", "color: #3ba336;", "received response: ", lastUJSONRPC);
// }

console.log("%cTuftsCEEO ", "color: #3ba336;", "received response: ", lastUJSONRPC);

// iterate over responseCallbacks global variable
for (var index in responseCallbacks) {

0 comments on commit f70c828

Please sign in to comment.