From 53c8e9a53f026d83d5328896d1ea0cf72690cf24 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 31 Jan 2017 22:51:31 +0100 Subject: ipactl restart: log httplib failues as debug There are several excerptions ConnectionRefusedError raised before ipactl is able to connect to dogtag after restart. These exception should be logged on debug level until timeout is reached. https://fedorahosted.org/freeipa/ticket/6674 Reviewed-By: Stanislav Laznicka Reviewed-By: Christian Heimes --- ipapython/dogtag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipapython') diff --git a/ipapython/dogtag.py b/ipapython/dogtag.py index 01fc5cbcf..b17175413 100644 --- a/ipapython/dogtag.py +++ b/ipapython/dogtag.py @@ -209,7 +209,7 @@ def _httplib_request( http_body = res.read() conn.close() except Exception as e: - root_logger.exception("httplib request failed:") + root_logger.debug("httplib request failed:", exc_info=True) raise NetworkError(uri=uri, error=str(e)) root_logger.debug('response status %d', http_status) -- cgit