Просмотр исходного кода

Use LOG.exception, remove LOG.debug

Gabriel Adrian Samfira 6 лет назад
Родитель
Сommit
cda551c9ef
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      coriolis/data_transfer.py

+ 1 - 2
coriolis/data_transfer.py

@@ -74,7 +74,7 @@ def compression_proxy(content, fmt):
             ret.raise_for_status()
             compressed_data = ret.content
         except Exception as err:
-            LOG.error(
+            LOG.exception(
                 "failed to compress using coriolis-compressor: %s" % err)
             LOG.info("falling back to built-in compressor")
             compressed_data = _COMPRESS_FUNC[fmt](content)
@@ -89,7 +89,6 @@ def compression_proxy(content, fmt):
 
     if data_len >= data_len_inflated:
         # No advantage in sending the compressed data
-        LOG.debug("Ignoring compression, not worth")
         compress = False
     else:
         data = compressed_data