From 4155c1e58827787062e592a6353378e7821621b0 Mon Sep 17 00:00:00 2001 From: tengqm Date: Mon, 18 Aug 2014 12:37:31 +0800 Subject: [PATCH] Silence urllib3 redundant logging. This patch makes the default logging level of heat-keystone-setup-domain to be WARNING and the 'urllib3.connectionpool' logging level to be WARNING as well. The intent is to remove unncecessary logging information from urllib3 library. Closes-Bug: 1358093 Change-Id: I650e80aa1093c8c7e7c5dac3694d58139d2ec260 --- bin/heat-keystone-setup-domain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/heat-keystone-setup-domain b/bin/heat-keystone-setup-domain index 40dc3ee9b..06920de9b 100755 --- a/bin/heat-keystone-setup-domain +++ b/bin/heat-keystone-setup-domain @@ -55,10 +55,11 @@ logger.debug("AUTH_URL=%s" % AUTH_URL) def main(): - log_lvl = logging.DEBUG if DEBUG else logging.INFO + log_lvl = logging.DEBUG if DEBUG else logging.WARNING logging.basicConfig( format="%(levelname)s (%(module)s:%(lineno)d) %(message)s", level=log_lvl) + logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING) c = client.Client(debug=DEBUG, username=USERNAME,