__main__: add logging about zlib usage

This commit is contained in:
Roman Zeyde
2015-06-23 11:38:09 +03:00
parent 01c78bae8f
commit 2e6196416b

View File

@@ -29,6 +29,7 @@ config = bitrates.get(int(bitrate))
class Compressor(object):
def __init__(self, stream):
self.obj = zlib.compressobj()
log.info('Using zlib compressor')
self.stream = stream
def read(self, size):
@@ -49,6 +50,7 @@ class Compressor(object):
class Decompressor(object):
def __init__(self, stream):
self.obj = zlib.decompressobj()
log.info('Using zlib decompressor')
self.stream = stream
def write(self, data):