mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-07-06 08:15:09 -04:00
Move most warning/info statements to stderr
This commit is contained in:
@ -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):
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user