Move most warning/info statements to stderr

This commit is contained in:
Steven Robertson
2017-05-15 11:58:12 -07:00
parent 9bcfc36b7a
commit 29c595ddc5
3 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,6 @@
import io
import os
import sys
import tempfile
from cStringIO import StringIO
from subprocess import Popen, PIPE
@ -273,8 +274,8 @@ class X264Output(Output, ClsMod):
try:
subp.stdin.write(buffer(buf))
except IOError, e:
print 'Exception while writing. Log:'
print subp.stderr.read()
print >> sys.stderr, 'Exception while writing. Log:'
print >> sys.stderr, subp.stderr.read()
raise e
def encode(self, buf):
@ -388,8 +389,8 @@ class VPxOutput(Output, ClsMod):
try:
subp.stdin.write(buffer(buf))
except IOError, e:
print 'Exception while writing. Log:'
print subp.stderr.read()
print >> sys.stderr, 'Exception while writing. Log:'
print >> sys.stderr, subp.stderr.read()
raise e
def encode(self, buf):

View File

@ -352,7 +352,7 @@ class RenderManager(ClsMod):
# Do a blocking sync to free up resources. This may slightly reduce
# parallelism but makes it a whole heck of a lot easier to keep
# using the computer while things render.
print 'Launches became blocking, synchronizing'
print >> sys.stderr, 'Launches became blocking, synchronizing'
iter_stream_right.synchronize()
# Make sure the other stream is done flushing before we start