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.5.0~610 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55f0c589ad457def289b6893d673634202e9bda4;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 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;