]> 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, 19 Jan 2016 16:25:28 +0000 (17:25 +0100)
refs #10963

lib/remote/apilistener.cpp

index b207587a3e3f545eab865222fae817e15d66022d..2f36075abc353aa59d32e723af318e41a3544e79 100644 (file)
@@ -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;