Include entity in provisioning block logs

Update debug log message to include the entity that triggered
provisioning complete. The entity is included on other debug
log messages and is helpful in debugging provisioning problems.

Change-Id: Ic14a3ae3a4b5262d383a3ad8f0cc341f0705bd0e
This commit is contained in:
Richard Theis 2016-09-22 10:16:33 -05:00
parent be8b588b32
commit 8612aaa46d
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ def provisioning_complete(context, object_id, object_type, entity):
records = context.session.query(ProvisioningBlock).filter_by(
standard_attr_id=standard_attr_id).count()
if not records:
LOG.debug("Provisioning complete for %(otype)s %(oid)s", log_dict)
LOG.debug("Provisioning complete for %(otype)s %(oid)s triggered by "
"entity %(entity)s.", log_dict)
registry.notify(object_type, PROVISIONING_COMPLETE,
'neutron.db.provisioning_blocks',
context=context, object_id=object_id)