mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Improve logs
This commit is contained in:
parent
a3027d7177
commit
134a43d48a
@ -102,7 +102,7 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
|
|
||||||
Host::Ptr host = Host::GetByName(params->Get("host"));
|
Host::Ptr host = Host::GetByName(params->Get("host"));
|
||||||
if (!host) {
|
if (!host) {
|
||||||
Log(LogCritical, "ApiListener", "Host not found.");
|
Log(LogCritical, "ApiListener") << "Host '" << params->Get("host") << "' not found.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +113,8 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
|||||||
checkable = host;
|
checkable = host;
|
||||||
|
|
||||||
if (!checkable) {
|
if (!checkable) {
|
||||||
Log(LogCritical, "ApiListener", "Checkable not found.");
|
Log(LogCritical, "ApiListener") << "Checkable '" << params->Get("host")
|
||||||
|
<< " " << params->Get("service") << "' not found.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user