We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5b1aa commit 8a4e7c5Copy full SHA for 8a4e7c5
clickhouse_driver/compression/__init__.py
@@ -1,15 +1,19 @@
1
import importlib
2
+import logging
3
4
from .. import errors
5
from ..protocol import CompressionMethodByte
6
7
+logger = logging.getLogger(__name__)
8
+
9
10
def get_compressor_cls(alg):
11
try:
12
module = importlib.import_module('.' + alg, __name__)
13
return module.Compressor
14
15
except ImportError:
16
+ logger.warning('Unable to import module %s', alg, exc_info=True)
17
raise errors.UnknownCompressionMethod(
18
"Unknown compression method: '{}'".format(alg)
19
)
0 commit comments