mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 10:17:59 +02:00
WIP
This commit is contained in:
parent
a922c0e1e2
commit
6535f064fe
@ -881,6 +881,8 @@ void ApiListener::ApiTimerHandler()
|
|||||||
|
|
||||||
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
|
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
|
||||||
if (client->GetTimestamp() == maxTs) {
|
if (client->GetTimestamp() == maxTs) {
|
||||||
|
Log(LogCritical, "LOG-POSITION")
|
||||||
|
<< "Sending SetLogPosition with timestamp '" << ts << "' to endpoint '" << client->GetEndpoint()->GetName() << "'";
|
||||||
client->SendMessage(lmessage);
|
client->SendMessage(lmessage);
|
||||||
} else {
|
} else {
|
||||||
client->Disconnect();
|
client->Disconnect();
|
||||||
|
@ -341,6 +341,9 @@ Value SetLogPositionHandler(const MessageOrigin::Ptr& origin, const Dictionary::
|
|||||||
if (log_position > endpoint->GetLocalLogPosition())
|
if (log_position > endpoint->GetLocalLogPosition())
|
||||||
endpoint->SetLocalLogPosition(log_position);
|
endpoint->SetLocalLogPosition(log_position);
|
||||||
|
|
||||||
|
Log(LogCritical, "LOG-POSITION")
|
||||||
|
<< "Got SetLogPosition with timestamp '" << log_position << "' from endpoint '" << endpoint->GetName() << "'";
|
||||||
|
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user