From d6f6a291da5926217ac3acbbb959fd23227c7bd2 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Tue, 20 Sep 2016 09:52:56 +0200 Subject: [PATCH] Add log messages for IP checks during client install The added log messages allow easier debugging of IP related issues during ipa-client-install. https://fedorahosted.org/freeipa/ticket/6331 Reviewed-By: Stanislav Laznicka Reviewed-By: Abhijeet Kasurde --- client/ipa-client-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ipa-client-install b/client/ipa-client-install index f22e653b4..8f5f81f8c 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -1569,8 +1569,9 @@ def get_local_ipaddresses(iface=None): for ip in if_addrs.get(family, []): try: ips.append(ipautil.CheckedIPAddress(ip['addr'])) - except ValueError: - continue + root_logger.debug('IP check successful: %s' % ip['addr']) + except ValueError as e: + root_logger.debug('IP check failed: %s' % e) return ips