From 55f0c589ad457def289b6893d673634202e9bda4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 19 Jan 2016 17:25:28 +0100 Subject: [PATCH] Skip log replay for endpoints with log_duration = 0 refs #10963 --- lib/remote/apilistener.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index b207587a3..2f36075ab 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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;