Skip to content

Commit

Permalink
Add context information to PerfdataWriter::CheckResultHandler.
Browse files Browse the repository at this point in the history
Fixes #4743
  • Loading branch information
gunnarbeutner committed Dec 2, 2013
1 parent 52d2066 commit 77595f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/perfdata/perfdatawriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "base/logger_fwd.h"
#include "base/convert.h"
#include "base/utility.h"
#include "base/context.h"
#include "base/application.h"

using namespace icinga;
Expand All @@ -48,6 +49,8 @@ void PerfdataWriter::Start(void)

void PerfdataWriter::CheckResultHandler(const Service::Ptr& service, const CheckResult::Ptr& cr)
{
CONTEXT("Writing performance data for service '" + service->GetShortName() + "' on host '" + service->GetHost()->GetName() + "'");

if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !service->GetEnablePerfdata())
return;

Expand Down

0 comments on commit 77595f9

Please sign in to comment.