From 3cfa8718b40c93734330a9d88f56f9cca40c7957 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 08c9fa8ee..80263a46a 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -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; -- 2.40.0