]> granicus.if.org Git - icinga2/commitdiff
Skip log replay for endpoints with log_duration = 0
authorGunnar Beutner <gunnar@beutner.name>
Tue, 19 Jan 2016 16:25:28 +0000 (17:25 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 23 Feb 2016 09:46:17 +0000 (10:46 +0100)
refs #10963

lib/remote/apilistener.cpp

index 08c9fa8ee115c4e04a202b8c718dcf9a8229b1d6..80263a46ae4df26c4f96e2fcb6521e643aec890d 100644 (file)
@@ -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;