浏览代码

Use LOG.exception, remove LOG.debug

Gabriel Adrian Samfira 7 年之前
父节点
当前提交
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()
             ret.raise_for_status()
             compressed_data = ret.content
             compressed_data = ret.content
         except Exception as err:
         except Exception as err:
-            LOG.error(
+            LOG.exception(
                 "failed to compress using coriolis-compressor: %s" % err)
                 "failed to compress using coriolis-compressor: %s" % err)
             LOG.info("falling back to built-in compressor")
             LOG.info("falling back to built-in compressor")
             compressed_data = _COMPRESS_FUNC[fmt](content)
             compressed_data = _COMPRESS_FUNC[fmt](content)
@@ -89,7 +89,6 @@ def compression_proxy(content, fmt):
 
 
     if data_len >= data_len_inflated:
     if data_len >= data_len_inflated:
         # No advantage in sending the compressed data
         # No advantage in sending the compressed data
-        LOG.debug("Ignoring compression, not worth")
         compress = False
         compress = False
     else:
     else:
         data = compressed_data
         data = compressed_data