From: Cheng Zhao Date: Thu, 3 Sep 2015 08:20:48 +0000 (+0900) Subject: Write output directly to stderr X-Git-Tag: v0.32.0~23 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f75458f78db2f558f9235b034109450b9d22bfa9;p=electron.git Write output directly to stderr --- diff --git a/script/cibuild b/script/cibuild index 67623beb..08d59385 100755 --- a/script/cibuild +++ b/script/cibuild @@ -78,7 +78,8 @@ def main(): def run_script(script, args=[]): - print 'Running', script + sys.stderr.write('\nRunning ' + script +'\n') + sys.stderr.flush() script = os.path.join(SOURCE_ROOT, 'script', script) subprocess.check_call([sys.executable, script] + args) diff --git a/spec/static/main.js b/spec/static/main.js index 4eb415da..d8b53167 100644 --- a/spec/static/main.js +++ b/spec/static/main.js @@ -15,11 +15,11 @@ ipc.on('message', function(event, arg) { }); ipc.on('console.log', function(event, args) { - console.log.apply(console, args); + console.error.apply(console, args); }); ipc.on('console.error', function(event, args) { - console.log.apply(console, args); + console.error.apply(console, args); }); ipc.on('process.exit', function(event, code) {