URL: https://github.com/freeipa/freeipa/pull/92
Author: tomaskrizek
 Title: #92: Add log messages for IP checks during client install
Action: opened

PR body:
"""
The added log messages allow easier debugging of
IP related issues during ipa-client-install.

https://fedorahosted.org/freeipa/ticket/6331
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/92/head:pr92
git checkout pr92
From 53ac34988eefe6e43ee4281f23faf55b9ebb9f8a Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tkri...@redhat.com>
Date: Mon, 19 Sep 2016 17:04:18 +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
---
 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 f22e653..24f94d0 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 sucessfull: %s' % ip['addr'])
+                except ValueError as e:
+                    root_logger.debug('IP check failed: %s' % str(e))
     return ips
 
 
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to