summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-11-20 18:01:49 +0100
committertomsmeding <hallo@tomsmeding.nl>2015-11-20 18:01:49 +0100
commit048540a5db19ef5d116ffe27881c68c4a0fdf948 (patch)
treefad8a2d9b281396eaaaedaa64359277ddd8403ee
parent5ddf5bbfc8c85380ed5f2fa91cc21a68ab971969 (diff)
cosmetic log changes
-rwxr-xr-xinteractor/interactor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interactor/interactor.js b/interactor/interactor.js
index 0a95193..64684ae 100755
--- a/interactor/interactor.js
+++ b/interactor/interactor.js
@@ -93,7 +93,7 @@ io.on("connection",function(conn){
conn.on("disconnect",function(){
console.log("Disconnect id "+id);
- log("Ending log on dissconnect (id "+id+")");
+ log("Ending log on disconnect (id "+id+")");
fs.closeSync(logfile);
if(proc){stopproc(proc);proc=null;}
if(pingtimeout)clearTimeout(pingtimeout);
@@ -137,7 +137,7 @@ io.on("connection",function(conn){
stdio:["pipe","pipe",process.stderr]
});
childpids.push(proc.pid);
- log("Process '"+aicmd+"' started with pid "+proc.pid);
+ log("Process '"+aicmd+"' started with pid "+proc.pid+", initiated by ip "+conn.request.connection.remoteAddress);
var buffer="";
proc.stdout.on("data",function(data){
var idx,line,mv,win;