From f48b6ee9340dc3212c6312827ecd3afa50071dec Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 23 Aug 2012 13:17:13 -0700 Subject: [PATCH] Log the instance causing the error when a pollster fails If a pollster fails, such as when libvirt cannot find an instance that nova thinks still exists, report the instance that caused the error. Change-Id: I7a42ed12954265c29b476f99d9f18db50d3b553d Signed-off-by: Doug Hellmann --- ceilometer/compute/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceilometer/compute/manager.py b/ceilometer/compute/manager.py index 660af1a24..9657f60f4 100644 --- a/ceilometer/compute/manager.py +++ b/ceilometer/compute/manager.py @@ -70,6 +70,6 @@ class AgentManager(manager.Manager): LOG.info('COUNTER: %s', c) publish.publish_counter(context, c) except Exception as err: - LOG.warning('Continuing after error from %s: %s', - name, err) + LOG.warning('Continuing after error from %s for %s: %s', + name, instance.name, err) LOG.exception(err)