summaryrefslogtreecommitdiff
path: root/taskflow/engines/worker_based/proxy.py
diff options
context:
space:
mode:
authorxhzhf <guoyongxhzhf@163.com>2016-12-18 08:30:51 +0800
committerxhzhf <guoyongxhzhf@163.com>2017-03-07 09:29:26 +0000
commit4e0125e4e52e67af0bf1bd84244fb6cb80e09abf (patch)
tree93b97131e5aa8a6bda34fff793b9e2c2cad67f74 /taskflow/engines/worker_based/proxy.py
parent96228d861633ab5d33add270e556a6f2e01aee40 (diff)
downloadtaskflow-4e0125e4e52e67af0bf1bd84244fb6cb80e09abf.tar.gz
python3.0 has deprecated LOG.warn
python3.0 has deprecated LOG.warn https://docs.python.org/3/library/logging.html#logging.warning Closes-Bug: #1650843 Change-Id: Ib8473cbdb84547f385e619fe08ed723b1ee7bcdb
Diffstat (limited to 'taskflow/engines/worker_based/proxy.py')
-rw-r--r--taskflow/engines/worker_based/proxy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/taskflow/engines/worker_based/proxy.py b/taskflow/engines/worker_based/proxy.py
index 386e377..e58c7a2 100644
--- a/taskflow/engines/worker_based/proxy.py
+++ b/taskflow/engines/worker_based/proxy.py
@@ -162,9 +162,9 @@ class Proxy(object):
# Filter out any empty keys...
routing_keys = [r_k for r_k in routing_keys if r_k]
if not routing_keys:
- LOG.warn("No routing key/s specified; unable to send '%s'"
- " to any target queue on exchange '%s'", msg,
- self._exchange_name)
+ LOG.warning("No routing key/s specified; unable to send '%s'"
+ " to any target queue on exchange '%s'", msg,
+ self._exchange_name)
return
def _publish(producer, routing_key):