Skip log replay for endpoints with log_duration = 0

refs #10963
This commit is contained in:
Gunnar Beutner 2016-01-19 17:25:28 +01:00
parent 087ad3fdf4
commit 3cfa8718b4
1 changed files with 3 additions and 0 deletions

View File

@ -808,6 +808,9 @@ void ApiListener::ReplayLog(const JsonRpcConnection::Ptr& client)
{
Endpoint::Ptr endpoint = client->GetEndpoint();
if (endpoint->GetLogDuration() == 0)
return;
CONTEXT("Replaying log for Endpoint '" + endpoint->GetName() + "'");
int count = -1;