]> khamidou — GitHub mirrors - electron.git/commitdiff
Write output directly to stderr
authorCheng Zhao <zcbenz@gmail.com>
Thu, 3 Sep 2015 08:20:48 +0000 (17:20 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 3 Sep 2015 08:39:06 +0000 (17:39 +0900)
script/cibuild
spec/static/main.js

index 67623beba402f047b3a2f7886de7c1c589f24292..08d59385c9e0b7cd7477b5eb8788d206ecb675be 100755 (executable)
@@ -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)
 
index 4eb415dab222983d70e8319865d8ca5b53595b51..d8b53167c5e2c53a4a952f99490585083b88c216 100644 (file)
@@ -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) {