Răsfoiți Sursa

Use LOG.exception, remove LOG.debug

Gabriel Adrian Samfira 6 ani în urmă
părinte
comite
cda551c9ef
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  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