mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
e983ced44b
commit
ea0052f208
@ -156,7 +156,10 @@ void CompatLog::CheckResultRequestHandler(const RequestMessage& request)
|
|||||||
<< attempt_after << ";"
|
<< attempt_after << ";"
|
||||||
<< "";
|
<< "";
|
||||||
|
|
||||||
WriteLine(msgbuf.str());
|
{
|
||||||
|
ObjectLock olock(this);
|
||||||
|
WriteLine(msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
if (service == host->GetHostCheckService()) {
|
if (service == host->GetHostCheckService()) {
|
||||||
std::ostringstream msgbuf;
|
std::ostringstream msgbuf;
|
||||||
@ -167,10 +170,17 @@ void CompatLog::CheckResultRequestHandler(const RequestMessage& request)
|
|||||||
<< attempt_after << ";"
|
<< attempt_after << ";"
|
||||||
<< "";
|
<< "";
|
||||||
|
|
||||||
WriteLine(msgbuf.str());
|
{
|
||||||
|
ObjectLock olock(this);
|
||||||
|
WriteLine(msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Flush();
|
{
|
||||||
|
ObjectLock olock(this);
|
||||||
|
Flush();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompatLog::WriteLine(const String& line)
|
void CompatLog::WriteLine(const String& line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user