Added a method to retrieve buffers from controler and logs to debug

This commit is contained in:
2014-11-03 17:45:39 +01:00
parent ddc9d67128
commit 1414d634fd
2 changed files with 14 additions and 4 deletions

View File

@@ -14,7 +14,13 @@ server.createServer(3219, "127.0.0.1", function (password) {
process.stdin.on("data", function(data) {
if (data.toString() !== "exit"){
eval(data.toString());
try {
console.log("CMD : "+data.toString());
console.log("RETURNED : "+eval(data.toString()));
}
catch (ex) {
console.log("Erreur : "+ex.message)
}
}
else {