]> granicus.if.org Git - icinga2/commitdiff
Change more loglines for checkables so checkable is quoted
authorMichael <mcktr55@gmail.com>
Thu, 24 Aug 2017 11:35:55 +0000 (13:35 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 5 Sep 2017 12:52:36 +0000 (14:52 +0200)
refs #5528

refs #5529

lib/icinga/checkable-check.cpp

index aa513a95ab64e5e9beabadf4619fec5fba430e7f..1f0096f92812544c8de0d9f204dd4b8e873a3f9a 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);
        }