Add context information for Graphite error messages

fixes #6898
This commit is contained in:
Gunnar Beutner 2014-08-14 17:08:11 +02:00
parent 92448a20da
commit 3048a02064
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,8 @@ void GraphiteWriter::ReconnectTimerHandler(void)
void GraphiteWriter::CheckResultHandler(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr)
{
CONTEXT("Processing check result for '" + checkable->GetName() + "'");
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
return;
@ -136,6 +138,7 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr&
if (!pdv.IsObjectType<Dictionary>())
{
CONTEXT("Processing performance data value '" + String(pdv) + "'");
Log(LogWarning, "GraphiteWriter", "Could not send performance data: unparsed data.");
return;
}