From 6535f064fefee8ee20e9faebe2c5d98425ece329 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Thu, 12 Nov 2020 11:12:41 +0100 Subject: [PATCH] WIP --- lib/remote/apilistener.cpp | 2 ++ lib/remote/jsonrpcconnection.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 09624895f..ec48ee582 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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(); diff --git a/lib/remote/jsonrpcconnection.cpp b/lib/remote/jsonrpcconnection.cpp index 7fd8775a7..acf2dbd53 100644 --- a/lib/remote/jsonrpcconnection.cpp +++ b/lib/remote/jsonrpcconnection.cpp @@ -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; }