Commit 9f746bf1 authored by mercury233's avatar mercury233

remove some log

parent 4c934078
...@@ -220,13 +220,11 @@ class Room ...@@ -220,13 +220,11 @@ class Room
@process = spawn './ygopro', param, cwd: 'ygocore' @process = spawn './ygopro', param, cwd: 'ygocore'
@process.on 'exit', (code)=> @process.on 'exit', (code)=>
log.info 'room-exit', this.name, this.port, code
@disconnector = 'server' unless @disconnector @disconnector = 'server' unless @disconnector
this.delete() this.delete()
return return
@process.stdout.setEncoding('utf8') @process.stdout.setEncoding('utf8')
@process.stdout.once 'data', (data)=> @process.stdout.once 'data', (data)=>
log.info data
@established = true @established = true
@port = parseInt data @port = parseInt data
_.each @players, (player)=> _.each @players, (player)=>
......
...@@ -269,7 +269,6 @@ ...@@ -269,7 +269,6 @@
}); });
this.process.on('exit', (function(_this) { this.process.on('exit', (function(_this) {
return function(code) { return function(code) {
log.info('room-exit', _this.name, _this.port, code);
if (!_this.disconnector) { if (!_this.disconnector) {
_this.disconnector = 'server'; _this.disconnector = 'server';
} }
...@@ -279,7 +278,6 @@ ...@@ -279,7 +278,6 @@
this.process.stdout.setEncoding('utf8'); this.process.stdout.setEncoding('utf8');
this.process.stdout.once('data', (function(_this) { this.process.stdout.once('data', (function(_this) {
return function(data) { return function(data) {
log.info(data);
_this.established = true; _this.established = true;
_this.port = parseInt(data); _this.port = parseInt(data);
_.each(_this.players, function(player) { _.each(_this.players, function(player) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment