]> granicus.if.org Git - icinga2/commitdiff
Change loglines for checkables so checkable is quoted 5528/head
authorThomas Widhalm <thomas.widhalm@icinga.com>
Wed, 23 Aug 2017 17:11:46 +0000 (19:11 +0200)
committerThomas Widhalm <thomas.widhalm@icinga.com>
Wed, 23 Aug 2017 17:11:46 +0000 (19:11 +0200)
lib/icinga/checkable-check.cpp

index aa513a95ab64e5e9beabadf4619fec5fba430e7f..5a327d8386edcc240d25783c571b1131bdd8eaa2 100644 (file)
@@ -354,13 +354,13 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
        if (hardChange || (is_volatile && !(IsStateOK(old_state) && IsStateOK(new_state)))) {
                OnStateChange(this, cr, StateTypeHard, origin);
                Log(LogNotice, "Checkable")
-                   << "State Change: Checkable " << GetName() << " hard state change from " << old_state_str << " to " << new_state_str << " detected." << (is_volatile ? " Checkable is volatile." : "");
+                   << "State Change: Checkable '" << GetName() << "' hard state change from " << old_state_str << " to " << new_state_str << " detected." << (is_volatile ? " Checkable is volatile." : "");
        }
        /* Whether a state change happened or the state type is SOFT (must be logged too). */
        else if (stateChange || GetStateType() == StateTypeSoft) {
                OnStateChange(this, cr, StateTypeSoft, origin);
                Log(LogNotice, "Checkable")
-                   << "State Change: Checkable " << GetName() << " soft state change from " << old_state_str << " to " << new_state_str << " detected.";
+                   << "State Change: Checkable '" << GetName() << "' soft state change from " << old_state_str << " to " << new_state_str << " detected.";
        }
 
        if (GetStateType() == StateTypeSoft || hardChange || recovery ||