]> granicus.if.org Git - icinga2/commitdiff
Change more loglines for checkables so checkable is quoted 5529/head
authorMichael <mcktr55@gmail.com>
Thu, 24 Aug 2017 11:35:55 +0000 (13:35 +0200)
committerMichael <mcktr55@gmail.com>
Thu, 24 Aug 2017 11:35:55 +0000 (13:35 +0200)
refs #5528

lib/icinga/checkable-check.cpp

index 5a327d8386edcc240d25783c571b1131bdd8eaa2..235f3a9dd38fe52b565ae58c733675c44fa202d0 100644 (file)
@@ -374,7 +374,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
                        OnNotificationsRequested(this, NotificationFlappingStart, cr, "", "", MessageOrigin::Ptr());
 
                Log(LogNotice, "Checkable")
-                       << "Flapping: Checkable " << GetName() << " started flapping (" << GetFlappingThreshold() << "% < " << GetFlappingCurrent() << "%).";
+                       << "Flapping: Checkable '" << GetName() << "' started flapping (" << GetFlappingThreshold() << "% < " << GetFlappingCurrent() << "%).";
 
                NotifyFlapping(origin);
        } else if (!in_downtime && was_flapping && !is_flapping) {
@@ -383,7 +383,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
                        OnNotificationsRequested(this, NotificationFlappingEnd, cr, "", "", MessageOrigin::Ptr());
 
                Log(LogNotice, "Checkable")
-                       << "Flapping: Checkable " << GetName() << " stopped flapping (" << GetFlappingThreshold() << "% >= " << GetFlappingCurrent() << "%).";
+                       << "Flapping: Checkable '" << GetName() << "' stopped flapping (" << GetFlappingThreshold() << "% >= " << GetFlappingCurrent() << "%).";
 
                NotifyFlapping(origin);
        }