summaryrefslogtreecommitdiff
path: root/trove/common/profile.py
diff options
context:
space:
mode:
authorLiuNanke <nanke.liu@easystack.cn>2015-12-29 22:45:10 +0800
committerLiuNanke <nanke.liu@easystack.cn>2015-12-30 14:35:43 +0000
commit1ee6814457e454dd86d263563d7cadd15dce3113 (patch)
treee885248e5c1f0c97d0a89bf5e44c99a7e8bcb941 /trove/common/profile.py
parent2b98c538624a55bda9abe304c08b19435869cbc6 (diff)
downloadtrove-1ee6814457e454dd86d263563d7cadd15dce3113.tar.gz
Using LOG.warning replace LOG.warn
*Python 3 deprecated the logger.warn method, see: *https://docs.python.org/3/library/logging.html#logging.warning *so we prefer to use warning to avoid DeprecationWarning. Closes-Bug: #1529913 Change-Id: Iae9e13e89bb9566c2482017f631408a95ffe002d
Diffstat (limited to 'trove/common/profile.py')
-rw-r--r--trove/common/profile.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/trove/common/profile.py b/trove/common/profile.py
index d59cf848..4147fe39 100644
--- a/trove/common/profile.py
+++ b/trove/common/profile.py
@@ -36,14 +36,14 @@ def setup_profiler(binary, host):
rpc.TRANSPORT, "trove", binary, host)
notifier.set(_notifier)
web.enable(CONF.profiler.hmac_keys)
- LOG.warn(_LW("The OpenStack Profiler is enabled. Using one of the "
- "hmac_keys specified in the trove.conf file "
- "(typically in /etc/trove), a trace can be made of all "
- "requests. Only an admin user can retrieve the trace "
- "information, however.\n"
- "To disable the profiler, add the following to the "
- "configuration file:\n"
- "[profiler]\n"
- "enabled=false"))
+ LOG.warning(_LW("The OpenStack Profiler is enabled. Using one"
+ " of the hmac_keys specified in the trove.conf file "
+ "(typically in /etc/trove), a trace can be made of "
+ "all requests. Only an admin user can retrieve "
+ "the trace information, however.\n"
+ "To disable the profiler, add the following to the "
+ "configuration file:\n"
+ "[profiler]\n"
+ "enabled=false"))
else:
web.disable()