diff --git a/clickhouse_driver/compression/__init__.py b/clickhouse_driver/compression/__init__.py index ac19f51e..9b1ff287 100644 --- a/clickhouse_driver/compression/__init__.py +++ b/clickhouse_driver/compression/__init__.py @@ -1,8 +1,11 @@ import importlib +import logging from .. import errors from ..protocol import CompressionMethodByte +logger = logging.getLogger(__name__) + def get_compressor_cls(alg): try: @@ -10,6 +13,7 @@ def get_compressor_cls(alg): return module.Compressor except ImportError: + logger.warning('Unable to import module %s', alg, exc_info=True) raise errors.UnknownCompressionMethod( "Unknown compression method: '{}'".format(alg) )