From: Gunnar Beutner Date: Tue, 19 Jan 2016 16:25:28 +0000 (+0100) Subject: Skip log replay for endpoints with log_duration = 0 X-Git-Tag: v2.4.2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cfa8718b40c93734330a9d88f56f9cca40c7957;p=icinga2 Skip log replay for endpoints with log_duration = 0 refs #10963 --- 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;