summaryrefslogtreecommitdiff
path: root/heatclient
diff options
context:
space:
mode:
authorliu-sheng <liusheng@huawei.com>2014-05-29 16:15:52 +0800
committerliusheng <liusheng@huawei.com>2014-05-30 00:56:41 +0000
commit8ee5062ceebe807ca31269f4a9f006722a1ba0c6 (patch)
tree26476f8deb46d69aba55fe44f6a2440896b4b8ef /heatclient
parentc29e863d56eeaead4b2698713b8ae809d92dbfd2 (diff)
downloadpython-heatclient-8ee5062ceebe807ca31269f4a9f006722a1ba0c6.tar.gz
Don't allow "propagate" of heatclient logger
Unlike other project, if we specified "--debug" in heatclient, it will display duplicate debug info. This is because the "propagate" of heatclient logger is True as default. Change-Id: Ia15878690e5ff0f29f7a11c044a66677af2909ee Closes-Bug: #1320789
Diffstat (limited to 'heatclient')
-rw-r--r--heatclient/common/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 48c83f6..5310115 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -29,6 +29,7 @@ from heatclient.openstack.common import strutils
LOG = logging.getLogger(__name__)
if not LOG.handlers:
LOG.addHandler(logging.StreamHandler())
+ LOG.propagate = False
USER_AGENT = 'python-heatclient'
CHUNKSIZE = 1024 * 64 # 64kB