replica-conncheck: log when failed to RPC connect

It's nearly impossible to find out what happened when doing
replica connection check and it fails during the RPC phase.
The error is now logged.

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Stanislav Laznicka authored and Pavel Vomacka committed 2017-07-27 10:33:58 +02:00
1 parent fc7e2565bd
commit 06fbf4b312
1 file changed
+2 -1
+2 -1
View File
@@ -586,7 +586,8 @@ def main():
finally:
if api.Backend.rpcclient.isconnected():
api.Backend.rpcclient.disconnect()
except Exception:
except Exception as e:
logger.debug("RPC connection failed: %s", e)
logger.info("Retrying using SSH...")
# Ticket 5812 Always qualify requests for admin