mirror of
https://github.com/romanz/amodem.git
synced 2026-03-17 07:05:59 +08:00
__main__: add logging about zlib usage
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user