]> granicus.if.org Git - icinga2/commitdiff
Revert "CheckerComponent#Stop(): log after actually being stopped"
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 19 Feb 2019 13:05:07 +0000 (14:05 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 19 Feb 2019 13:05:07 +0000 (14:05 +0100)
This reverts commit b81aa6af3a23cba179b9da03fda6d2674ccc0956.

lib/checker/checkercomponent.cpp

index c14259b88b1bc1d101f6c3b5c134ad1f3eaddb2a..cde975b7251bf1b029c11cacf5c17c8f9f4b09f5 100644 (file)
@@ -84,6 +84,9 @@ void CheckerComponent::Start(bool runtimeCreated)
 
 void CheckerComponent::Stop(bool runtimeRemoved)
 {
+       Log(LogInformation, "CheckerComponent")
+               << "'" << GetName() << "' stopped.";
+
        {
                boost::mutex::scoped_lock lock(m_Mutex);
                m_Stopped = true;
@@ -93,9 +96,6 @@ void CheckerComponent::Stop(bool runtimeRemoved)
        m_ResultTimer->Stop();
        m_Thread.join();
 
-       Log(LogInformation, "CheckerComponent")
-               << "'" << GetName() << "' stopped.";
-
        ObjectImpl<CheckerComponent>::Stop(runtimeRemoved);
 }