From fe7d96a708927b299ddb939f854b09b3452c5304 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Fri, 26 Oct 2018 17:00:41 +0200 Subject: Add a bit more data to the logging message In case of failures, it is hard to understand for what vnf the port pair was being created when things went wrong Change-Id: I1cfa2553318d910535d45910b2a46d75b2f7926a Signed-off-by: Manuel Buil --- sfc/lib/openstack_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfc/lib') diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py index dbb217d6..7915e77d 100644 --- a/sfc/lib/openstack_utils.py +++ b/sfc/lib/openstack_utils.py @@ -293,7 +293,7 @@ class OpenStackSFC: ''' Creates a networking-sfc port pair and group ''' - logger.info("Creating the port pairs...") + logger.info("Creating the port pairs for %s" % vm_instance.name) port_pair = dict() port_pair['name'] = vm_instance.name + '-connection-points' port_pair['description'] = 'port pair for ' + vm_instance.name @@ -316,7 +316,7 @@ class OpenStackSFC: {'vnf': vm_instance.name}) return None - logger.info("Creating the port pair groups...") + logger.info("Creating the port pair groups for %s" % vm_instance.name) port_pair_group = {} port_pair_group['name'] = vm_instance.name + '-port-pair-group' port_pair_group['description'] = \ -- cgit 1.2.3-korg