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 <slaznick@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Martin Basti 2017-01-31 22:51:31 +01:00
parent b3c41f21e5
commit 53c8e9a53f

View File

@ -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)