Merge "Add debug information when skipped some errors"

This commit is contained in:
Zuul 2017-10-22 14:37:55 +00:00 committed by Gerrit Code Review
commit 42ccdb6e0d
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class NFPIPsecVpnAgentApi(base_ipsec.IPsecVpnAgentApi):
# failed. Return whichever agent is available.
for agent in agents:
if not agent['alive']:
LOG.debug("Cannot get a active vpn agent, skipped")
continue
return agent
except Exception: