mirror of https://github.com/Icinga/icinga2.git
CONTEXT: use << everywhere to unify usages
This commit is contained in:
parent
b82814fb29
commit
83021f8231
|
@ -352,7 +352,7 @@ void ConfigObject::Start(bool runtimeCreated)
|
||||||
|
|
||||||
void ConfigObject::PreActivate()
|
void ConfigObject::PreActivate()
|
||||||
{
|
{
|
||||||
CONTEXT("Setting 'active' to true for object '" + GetName() + "' of type '" + GetReflectionType()->GetName() + "'");
|
CONTEXT("Setting 'active' to true for object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'");
|
||||||
|
|
||||||
ASSERT(!IsActive());
|
ASSERT(!IsActive());
|
||||||
SetActive(true, true);
|
SetActive(true, true);
|
||||||
|
@ -360,7 +360,7 @@ void ConfigObject::PreActivate()
|
||||||
|
|
||||||
void ConfigObject::Activate(bool runtimeCreated, const Value& cookie)
|
void ConfigObject::Activate(bool runtimeCreated, const Value& cookie)
|
||||||
{
|
{
|
||||||
CONTEXT("Activating object '" + GetName() + "' of type '" + GetReflectionType()->GetName() + "'");
|
CONTEXT("Activating object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'");
|
||||||
|
|
||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
@ -387,7 +387,7 @@ void ConfigObject::Stop(bool runtimeRemoved)
|
||||||
|
|
||||||
void ConfigObject::Deactivate(bool runtimeRemoved, const Value& cookie)
|
void ConfigObject::Deactivate(bool runtimeRemoved, const Value& cookie)
|
||||||
{
|
{
|
||||||
CONTEXT("Deactivating object '" + GetName() + "' of type '" + GetReflectionType()->GetName() + "'");
|
CONTEXT("Deactivating object '" << GetName() << "' of type '" << GetReflectionType()->GetName() << "'");
|
||||||
|
|
||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
|
@ -71,14 +71,14 @@ void CheckResultReader::Stop(bool runtimeRemoved)
|
||||||
*/
|
*/
|
||||||
void CheckResultReader::ReadTimerHandler() const
|
void CheckResultReader::ReadTimerHandler() const
|
||||||
{
|
{
|
||||||
CONTEXT("Processing check result files in '" + GetSpoolDir() + "'");
|
CONTEXT("Processing check result files in '" << GetSpoolDir() << "'");
|
||||||
|
|
||||||
Utility::Glob(GetSpoolDir() + "/c??????.ok", [this](const String& path) { ProcessCheckResultFile(path); }, GlobFile);
|
Utility::Glob(GetSpoolDir() + "/c??????.ok", [this](const String& path) { ProcessCheckResultFile(path); }, GlobFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckResultReader::ProcessCheckResultFile(const String& path) const
|
void CheckResultReader::ProcessCheckResultFile(const String& path) const
|
||||||
{
|
{
|
||||||
CONTEXT("Processing check result file '" + path + "'");
|
CONTEXT("Processing check result file '" << path << "'");
|
||||||
|
|
||||||
String crfile = String(path.Begin(), path.End() - 3); /* Remove the ".ok" extension. */
|
String crfile = String(path.Begin(), path.End() - 3); /* Remove the ".ok" extension. */
|
||||||
|
|
||||||
|
|
|
@ -235,7 +235,7 @@ std::unique_ptr<Expression> ConfigCompiler::HandleIncludeZones(const String& rel
|
||||||
std::unique_ptr<Expression> ConfigCompiler::CompileStream(const String& path,
|
std::unique_ptr<Expression> ConfigCompiler::CompileStream(const String& path,
|
||||||
std::istream *stream, const String& zone, const String& package)
|
std::istream *stream, const String& zone, const String& package)
|
||||||
{
|
{
|
||||||
CONTEXT("Compiling configuration stream with name '" + path + "'");
|
CONTEXT("Compiling configuration stream with name '" << path << "'");
|
||||||
|
|
||||||
stream->exceptions(std::istream::badbit);
|
stream->exceptions(std::istream::badbit);
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ std::unique_ptr<Expression> ConfigCompiler::CompileStream(const String& path,
|
||||||
std::unique_ptr<Expression> ConfigCompiler::CompileFile(const String& path, const String& zone,
|
std::unique_ptr<Expression> ConfigCompiler::CompileFile(const String& path, const String& zone,
|
||||||
const String& package)
|
const String& package)
|
||||||
{
|
{
|
||||||
CONTEXT("Compiling configuration file '" + path + "'");
|
CONTEXT("Compiling configuration file '" << path << "'");
|
||||||
|
|
||||||
std::ifstream stream(path.CStr(), std::ifstream::in);
|
std::ifstream stream(path.CStr(), std::ifstream::in);
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ void IdoMysqlConnection::Reconnect()
|
||||||
if (!IsActive())
|
if (!IsActive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CONTEXT("Reconnecting to MySQL IDO database '" + GetName() + "'");
|
CONTEXT("Reconnecting to MySQL IDO database '" << GetName() << "'");
|
||||||
|
|
||||||
double startTime = Utility::GetTime();
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ void IdoPgsqlConnection::Reconnect()
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Reconnecting to PostgreSQL IDO database '" + GetName() + "'");
|
CONTEXT("Reconnecting to PostgreSQL IDO database '" << GetName() << "'");
|
||||||
|
|
||||||
double startTime = Utility::GetTime();
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
|
|
|
@ -534,7 +534,7 @@ Checkable::ProcessingResult Checkable::ProcessCheckResult(const CheckResult::Ptr
|
||||||
|
|
||||||
void Checkable::ExecuteRemoteCheck(const Dictionary::Ptr& resolvedMacros)
|
void Checkable::ExecuteRemoteCheck(const Dictionary::Ptr& resolvedMacros)
|
||||||
{
|
{
|
||||||
CONTEXT("Executing remote check for object '" + GetName() + "'");
|
CONTEXT("Executing remote check for object '" << GetName() << "'");
|
||||||
|
|
||||||
double scheduled_start = GetNextCheck();
|
double scheduled_start = GetNextCheck();
|
||||||
double before_check = Utility::GetTime();
|
double before_check = Utility::GetTime();
|
||||||
|
@ -548,7 +548,7 @@ void Checkable::ExecuteRemoteCheck(const Dictionary::Ptr& resolvedMacros)
|
||||||
|
|
||||||
void Checkable::ExecuteCheck()
|
void Checkable::ExecuteCheck()
|
||||||
{
|
{
|
||||||
CONTEXT("Executing check for object '" + GetName() + "'");
|
CONTEXT("Executing check for object '" << GetName() << "'");
|
||||||
|
|
||||||
/* keep track of scheduling info in case the check type doesn't provide its own information */
|
/* keep track of scheduling info in case the check type doesn't provide its own information */
|
||||||
double scheduled_start = GetNextCheck();
|
double scheduled_start = GetNextCheck();
|
||||||
|
|
|
@ -19,7 +19,7 @@ EventCommand::Ptr Checkable::GetEventCommand() const
|
||||||
|
|
||||||
void Checkable::ExecuteEventHandler(const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
|
void Checkable::ExecuteEventHandler(const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
|
||||||
{
|
{
|
||||||
CONTEXT("Executing event handler for object '" + GetName() + "'");
|
CONTEXT("Executing event handler for object '" << GetName() << "'");
|
||||||
|
|
||||||
if (!IcingaApplication::GetInstance()->GetEnableEventHandlers() || !GetEnableEventHandler())
|
if (!IcingaApplication::GetInstance()->GetEnableEventHandlers() || !GetEnableEventHandler())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -34,7 +34,7 @@ void Checkable::SendNotifications(NotificationType type, const CheckResult::Ptr&
|
||||||
{
|
{
|
||||||
String checkableName = GetName();
|
String checkableName = GetName();
|
||||||
|
|
||||||
CONTEXT("Sending notifications for object '" + checkableName + "'");
|
CONTEXT("Sending notifications for object '" << checkableName << "'");
|
||||||
|
|
||||||
bool force = GetForceNextNotification();
|
bool force = GetForceNextNotification();
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ bool Dependency::EvaluateApplyRule(const Checkable::Ptr& checkable, const ApplyR
|
||||||
|
|
||||||
void Dependency::EvaluateApplyRules(const Host::Ptr& host)
|
void Dependency::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for host '" << host->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(Dependency::TypeInstance, Host::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(Dependency::TypeInstance, Host::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(host, *rule))
|
if (EvaluateApplyRule(host, *rule))
|
||||||
|
@ -147,7 +147,7 @@ void Dependency::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
|
|
||||||
void Dependency::EvaluateApplyRules(const Service::Ptr& service)
|
void Dependency::EvaluateApplyRules(const Service::Ptr& service)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for service '" + service->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for service '" << service->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(Dependency::TypeInstance, Service::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(Dependency::TypeInstance, Service::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(service, *rule))
|
if (EvaluateApplyRule(service, *rule))
|
||||||
|
|
|
@ -22,7 +22,7 @@ bool HostGroup::EvaluateObjectRule(const Host::Ptr& host, const ConfigItem::Ptr&
|
||||||
{
|
{
|
||||||
String groupName = group->GetName();
|
String groupName = group->GetName();
|
||||||
|
|
||||||
CONTEXT("Evaluating rule for group '" + groupName + "'");
|
CONTEXT("Evaluating rule for group '" << groupName << "'");
|
||||||
|
|
||||||
ScriptFrame frame(true);
|
ScriptFrame frame(true);
|
||||||
if (group->GetScope())
|
if (group->GetScope())
|
||||||
|
@ -45,7 +45,7 @@ bool HostGroup::EvaluateObjectRule(const Host::Ptr& host, const ConfigItem::Ptr&
|
||||||
|
|
||||||
void HostGroup::EvaluateObjectRules(const Host::Ptr& host)
|
void HostGroup::EvaluateObjectRules(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating group memberships for host '" + host->GetName() + "'");
|
CONTEXT("Evaluating group memberships for host '" << host->GetName() << "'");
|
||||||
|
|
||||||
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(HostGroup::TypeInstance))
|
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(HostGroup::TypeInstance))
|
||||||
{
|
{
|
||||||
|
|
|
@ -76,7 +76,7 @@ Value MacroProcessor::ResolveMacros(const Value& str, const ResolverList& resolv
|
||||||
bool MacroProcessor::ResolveMacro(const String& macro, const ResolverList& resolvers,
|
bool MacroProcessor::ResolveMacro(const String& macro, const ResolverList& resolvers,
|
||||||
const CheckResult::Ptr& cr, Value *result, bool *recursive_macro)
|
const CheckResult::Ptr& cr, Value *result, bool *recursive_macro)
|
||||||
{
|
{
|
||||||
CONTEXT("Resolving macro '" + macro + "'");
|
CONTEXT("Resolving macro '" << macro << "'");
|
||||||
|
|
||||||
*recursive_macro = false;
|
*recursive_macro = false;
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ Value MacroProcessor::InternalResolveMacros(const String& str, const ResolverLis
|
||||||
const MacroProcessor::EscapeCallback& escapeFn, const Dictionary::Ptr& resolvedMacros,
|
const MacroProcessor::EscapeCallback& escapeFn, const Dictionary::Ptr& resolvedMacros,
|
||||||
bool useResolvedMacros, int recursionLevel)
|
bool useResolvedMacros, int recursionLevel)
|
||||||
{
|
{
|
||||||
CONTEXT("Resolving macros for string '" + str + "'");
|
CONTEXT("Resolving macros for string '" << str << "'");
|
||||||
|
|
||||||
if (recursionLevel > 15)
|
if (recursionLevel > 15)
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error("Infinite recursion detected while resolving macros"));
|
BOOST_THROW_EXCEPTION(std::runtime_error("Infinite recursion detected while resolving macros"));
|
||||||
|
|
|
@ -131,7 +131,7 @@ bool Notification::EvaluateApplyRule(const Checkable::Ptr& checkable, const Appl
|
||||||
|
|
||||||
void Notification::EvaluateApplyRules(const Host::Ptr& host)
|
void Notification::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for host '" << host->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(Notification::TypeInstance, Host::TypeInstance))
|
for (auto& rule : ApplyRule::GetRules(Notification::TypeInstance, Host::TypeInstance))
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,7 @@ void Notification::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
|
|
||||||
void Notification::EvaluateApplyRules(const Service::Ptr& service)
|
void Notification::EvaluateApplyRules(const Service::Ptr& service)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for service '" + service->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for service '" << service->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(Notification::TypeInstance, Service::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(Notification::TypeInstance, Service::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(service, *rule))
|
if (EvaluateApplyRule(service, *rule))
|
||||||
|
|
|
@ -130,7 +130,7 @@ bool ScheduledDowntime::EvaluateApplyRule(const Checkable::Ptr& checkable, const
|
||||||
|
|
||||||
void ScheduledDowntime::EvaluateApplyRules(const Host::Ptr& host)
|
void ScheduledDowntime::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for host '" << host->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(ScheduledDowntime::TypeInstance, Host::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(ScheduledDowntime::TypeInstance, Host::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(host, *rule))
|
if (EvaluateApplyRule(host, *rule))
|
||||||
|
@ -145,7 +145,7 @@ void ScheduledDowntime::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
|
|
||||||
void ScheduledDowntime::EvaluateApplyRules(const Service::Ptr& service)
|
void ScheduledDowntime::EvaluateApplyRules(const Service::Ptr& service)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for service '" + service->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for service '" << service->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(ScheduledDowntime::TypeInstance, Service::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(ScheduledDowntime::TypeInstance, Service::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(service, *rule))
|
if (EvaluateApplyRule(service, *rule))
|
||||||
|
|
|
@ -119,7 +119,7 @@ bool Service::EvaluateApplyRule(const Host::Ptr& host, const ApplyRule& rule, bo
|
||||||
|
|
||||||
void Service::EvaluateApplyRules(const Host::Ptr& host)
|
void Service::EvaluateApplyRules(const Host::Ptr& host)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating 'apply' rules for host '" + host->GetName() + "'");
|
CONTEXT("Evaluating 'apply' rules for host '" << host->GetName() << "'");
|
||||||
|
|
||||||
for (auto& rule : ApplyRule::GetRules(Service::TypeInstance, Host::TypeInstance)) {
|
for (auto& rule : ApplyRule::GetRules(Service::TypeInstance, Host::TypeInstance)) {
|
||||||
if (EvaluateApplyRule(host, *rule))
|
if (EvaluateApplyRule(host, *rule))
|
||||||
|
|
|
@ -22,7 +22,7 @@ bool ServiceGroup::EvaluateObjectRule(const Service::Ptr& service, const ConfigI
|
||||||
{
|
{
|
||||||
String groupName = group->GetName();
|
String groupName = group->GetName();
|
||||||
|
|
||||||
CONTEXT("Evaluating rule for group '" + groupName + "'");
|
CONTEXT("Evaluating rule for group '" << groupName << "'");
|
||||||
|
|
||||||
Host::Ptr host = service->GetHost();
|
Host::Ptr host = service->GetHost();
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ bool ServiceGroup::EvaluateObjectRule(const Service::Ptr& service, const ConfigI
|
||||||
|
|
||||||
void ServiceGroup::EvaluateObjectRules(const Service::Ptr& service)
|
void ServiceGroup::EvaluateObjectRules(const Service::Ptr& service)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating group membership for service '" + service->GetName() + "'");
|
CONTEXT("Evaluating group membership for service '" << service->GetName() << "'");
|
||||||
|
|
||||||
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(ServiceGroup::TypeInstance))
|
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(ServiceGroup::TypeInstance))
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ bool UserGroup::EvaluateObjectRule(const User::Ptr& user, const ConfigItem::Ptr&
|
||||||
{
|
{
|
||||||
String groupName = group->GetName();
|
String groupName = group->GetName();
|
||||||
|
|
||||||
CONTEXT("Evaluating rule for group '" + groupName + "'");
|
CONTEXT("Evaluating rule for group '" << groupName << "'");
|
||||||
|
|
||||||
ScriptFrame frame(true);
|
ScriptFrame frame(true);
|
||||||
if (group->GetScope())
|
if (group->GetScope())
|
||||||
|
@ -46,7 +46,7 @@ bool UserGroup::EvaluateObjectRule(const User::Ptr& user, const ConfigItem::Ptr&
|
||||||
|
|
||||||
void UserGroup::EvaluateObjectRules(const User::Ptr& user)
|
void UserGroup::EvaluateObjectRules(const User::Ptr& user)
|
||||||
{
|
{
|
||||||
CONTEXT("Evaluating group membership for user '" + user->GetName() + "'");
|
CONTEXT("Evaluating group membership for user '" << user->GetName() << "'");
|
||||||
|
|
||||||
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(UserGroup::TypeInstance))
|
for (const ConfigItem::Ptr& group : ConfigItem::GetItems(UserGroup::TypeInstance))
|
||||||
{
|
{
|
||||||
|
|
|
@ -211,7 +211,7 @@ void ElasticsearchWriter::InternalCheckResultHandler(const Checkable::Ptr& check
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Elasticwriter processing check result for '" + checkable->GetName() + "'");
|
CONTEXT("Elasticwriter processing check result for '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
||||||
return;
|
return;
|
||||||
|
@ -268,7 +268,7 @@ void ElasticsearchWriter::StateChangeHandlerInternal(const Checkable::Ptr& check
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Elasticwriter processing state change '" + checkable->GetName() + "'");
|
CONTEXT("Elasticwriter processing state change '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
Host::Ptr host;
|
Host::Ptr host;
|
||||||
Service::Ptr service;
|
Service::Ptr service;
|
||||||
|
@ -324,7 +324,7 @@ void ElasticsearchWriter::NotificationSentToAllUsersHandlerInternal(const Notifi
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Elasticwriter processing notification to all users '" + checkable->GetName() + "'");
|
CONTEXT("Elasticwriter processing notification to all users '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
Log(LogDebug, "ElasticsearchWriter")
|
Log(LogDebug, "ElasticsearchWriter")
|
||||||
<< "Processing notification for '" << checkable->GetName() << "'";
|
<< "Processing notification for '" << checkable->GetName() << "'";
|
||||||
|
|
|
@ -162,7 +162,7 @@ void GelfWriter::ReconnectInternal()
|
||||||
{
|
{
|
||||||
double startTime = Utility::GetTime();
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
CONTEXT("Reconnecting to Graylog Gelf '" + GetName() + "'");
|
CONTEXT("Reconnecting to Graylog Gelf '" << GetName() << "'");
|
||||||
|
|
||||||
SetShouldConnect(true);
|
SetShouldConnect(true);
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ void GelfWriter::CheckResultHandlerInternal(const Checkable::Ptr& checkable, con
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("GELF Processing check result for '" + checkable->GetName() + "'");
|
CONTEXT("GELF Processing check result for '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
Log(LogDebug, "GelfWriter")
|
Log(LogDebug, "GelfWriter")
|
||||||
<< "Processing check result for '" << checkable->GetName() << "'";
|
<< "Processing check result for '" << checkable->GetName() << "'";
|
||||||
|
@ -388,7 +388,7 @@ void GelfWriter::NotificationToUserHandlerInternal(const Notification::Ptr& noti
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("GELF Processing notification to all users '" + checkable->GetName() + "'");
|
CONTEXT("GELF Processing notification to all users '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
Log(LogDebug, "GelfWriter")
|
Log(LogDebug, "GelfWriter")
|
||||||
<< "Processing notification for '" << checkable->GetName() << "'";
|
<< "Processing notification for '" << checkable->GetName() << "'";
|
||||||
|
@ -452,7 +452,7 @@ void GelfWriter::StateChangeHandlerInternal(const Checkable::Ptr& checkable, con
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("GELF Processing state change '" + checkable->GetName() + "'");
|
CONTEXT("GELF Processing state change '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
Log(LogDebug, "GelfWriter")
|
Log(LogDebug, "GelfWriter")
|
||||||
<< "Processing state change for '" << checkable->GetName() << "'";
|
<< "Processing state change for '" << checkable->GetName() << "'";
|
||||||
|
|
|
@ -181,7 +181,7 @@ void GraphiteWriter::ReconnectInternal()
|
||||||
{
|
{
|
||||||
double startTime = Utility::GetTime();
|
double startTime = Utility::GetTime();
|
||||||
|
|
||||||
CONTEXT("Reconnecting to Graphite '" + GetName() + "'");
|
CONTEXT("Reconnecting to Graphite '" << GetName() << "'");
|
||||||
|
|
||||||
SetShouldConnect(true);
|
SetShouldConnect(true);
|
||||||
|
|
||||||
|
@ -276,7 +276,7 @@ void GraphiteWriter::CheckResultHandlerInternal(const Checkable::Ptr& checkable,
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Processing check result for '" + checkable->GetName() + "'");
|
CONTEXT("Processing check result for '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
/* TODO: Deal with missing connection here. Needs refactoring
|
/* TODO: Deal with missing connection here. Needs refactoring
|
||||||
* into parsing the actual performance data and then putting it
|
* into parsing the actual performance data and then putting it
|
||||||
|
|
|
@ -210,7 +210,7 @@ void InfluxdbCommonWriter::CheckResultHandlerWQ(const Checkable::Ptr& checkable,
|
||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
CONTEXT("Processing check result for '" + checkable->GetName() + "'");
|
CONTEXT("Processing check result for '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -158,7 +158,7 @@ void OpenTsdbWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
||||||
if (IsPaused())
|
if (IsPaused())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CONTEXT("Processing check result for '" + checkable->GetName() + "'");
|
CONTEXT("Processing check result for '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -99,7 +99,7 @@ void PerfdataWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
|
||||||
if (IsPaused())
|
if (IsPaused())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CONTEXT("Writing performance data for object '" + checkable->GetName() + "'");
|
CONTEXT("Writing performance data for object '" << checkable->GetName() << "'");
|
||||||
|
|
||||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !checkable->GetEnablePerfdata())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -817,7 +817,7 @@ void ApiListener::ConfigGlobHandler(ConfigDirInformation& config, const String&
|
||||||
if (Utility::BaseName(file) == ".authoritative")
|
if (Utility::BaseName(file) == ".authoritative")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CONTEXT("Creating config update for file '" + file + "'");
|
CONTEXT("Creating config update for file '" << file << "'");
|
||||||
|
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogNotice, "ApiListener")
|
||||||
<< "Creating config update for file '" << file << "'.";
|
<< "Creating config update for file '" << file << "'.";
|
||||||
|
|
|
@ -1400,7 +1400,7 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CONTEXT("Replaying log for Endpoint '" + endpoint->GetName() + "'");
|
CONTEXT("Replaying log for Endpoint '" << endpoint->GetName() << "'");
|
||||||
|
|
||||||
int count = -1;
|
int count = -1;
|
||||||
double peer_ts = endpoint->GetLocalLogPosition();
|
double peer_ts = endpoint->GetLocalLogPosition();
|
||||||
|
|
Loading…
Reference in New Issue