This commit is contained in:
Noah Hilverling 2020-11-12 11:12:41 +01:00
parent a922c0e1e2
commit 6535f064fe
2 changed files with 5 additions and 0 deletions

View File

@ -881,6 +881,8 @@ void ApiListener::ApiTimerHandler()
for (const JsonRpcConnection::Ptr& client : endpoint->GetClients()) {
if (client->GetTimestamp() == maxTs) {
Log(LogCritical, "LOG-POSITION")
<< "Sending SetLogPosition with timestamp '" << ts << "' to endpoint '" << client->GetEndpoint()->GetName() << "'";
client->SendMessage(lmessage);
} else {
client->Disconnect();

View File

@ -341,6 +341,9 @@ Value SetLogPositionHandler(const MessageOrigin::Ptr& origin, const Dictionary::
if (log_position > endpoint->GetLocalLogPosition())
endpoint->SetLocalLogPosition(log_position);
Log(LogCritical, "LOG-POSITION")
<< "Got SetLogPosition with timestamp '" << log_position << "' from endpoint '" << endpoint->GetName() << "'";
return Empty;
}