From f145ea57a4fcb37b27cb0b0fe7439a0982fb32b6 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Wed, 11 Oct 2017 16:43:29 +0800 Subject: [PATCH] Add debug information when skipped some errors Although codes make steps continue, the error infomation should be logged to users. Change-Id: I80feb9b279dcb1fc122945be2fc2037bea625e88 --- .../contrib/nfp/service_plugins/vpn/drivers/nfp_vpnaas_driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gbpservice/contrib/nfp/service_plugins/vpn/drivers/nfp_vpnaas_driver.py b/gbpservice/contrib/nfp/service_plugins/vpn/drivers/nfp_vpnaas_driver.py index 1fc724af0..6d6abaaa3 100644 --- a/gbpservice/contrib/nfp/service_plugins/vpn/drivers/nfp_vpnaas_driver.py +++ b/gbpservice/contrib/nfp/service_plugins/vpn/drivers/nfp_vpnaas_driver.py @@ -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: