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 db0c6ef187
commit 55f0c589ad
1 changed files with 3 additions and 0 deletions

View File

@ -749,6 +749,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;