summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-12-18 17:14:41 -0500
committerMartin Kosek <mkosek@redhat.com>2012-12-19 09:50:43 +0100
commite8cb869046f7ad9e9621188415a9e2b2de9ab577 (patch)
tree2f2c7e309f1eaad354459d66f3b3b3dd064602d6
parentb3ea7d2d626da9ffb86777bed9bbdf8d96849bc5 (diff)
downloadfreeipa-e8cb869046f7ad9e9621188415a9e2b2de9ab577.tar.gz
freeipa-e8cb869046f7ad9e9621188415a9e2b2de9ab577.tar.xz
freeipa-e8cb869046f7ad9e9621188415a9e2b2de9ab577.zip
Log info on failure to connect
When multiple servers are avilable we were simply suppressing information on why a connection failed. Log it as 'info' so that it is possible to diagnose issues more easily.
-rw-r--r--ipalib/rpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index a5c5de557..077d99ebe 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -665,6 +665,8 @@ class xmlclient(Connectible):
except Exception, e:
if not fallback:
raise
+ else:
+ self.log.info('Connection to %s failed with %s', url, e)
serverproxy = None
if serverproxy is None: