Commit 5d949d4b authored by mercury233's avatar mercury233

fix

parent f1ba9741
...@@ -1535,6 +1535,7 @@ if settings.modules.spawn_windbot ...@@ -1535,6 +1535,7 @@ if settings.modules.spawn_windbot
windbot_process.stdout.on 'data', (data)-> windbot_process.stdout.on 'data', (data)->
log.info 'WindBot:', data log.info 'WindBot:', data
return return
windbot_process.stderr.setEncoding('utf8')
windbot_process.stderr.on 'data', (data)-> windbot_process.stderr.on 'data', (data)->
log.warn 'WindBot Error:', data log.warn 'WindBot Error:', data
return return
......
...@@ -1925,6 +1925,7 @@ ...@@ -1925,6 +1925,7 @@
windbot_process.stdout.on('data', function(data) { windbot_process.stdout.on('data', function(data) {
log.info('WindBot:', data); log.info('WindBot:', data);
}); });
windbot_process.stderr.setEncoding('utf8');
windbot_process.stderr.on('data', function(data) { windbot_process.stderr.on('data', function(data) {
log.warn('WindBot Error:', data); log.warn('WindBot Error:', data);
}); });
......
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