From f75458f78db2f558f9235b034109450b9d22bfa9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 3 Sep 2015 17:20:48 +0900 Subject: [PATCH] Write output directly to stderr --- script/cibuild | 3 ++- spec/static/main.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/script/cibuild b/script/cibuild index 67623beba402..08d59385c9e0 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 4eb415dab222..d8b53167c5e2 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) {