[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: add debug log when cancelling a downtime

git at icinga.org git at icinga.org
Fri Mar 8 18:52:10 CET 2013


Module: icinga-core
Branch: mfriedrich/core
Commit: b0e56345fddc1e3214e97de63bb5ce556201a7ec
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=b0e56345fddc1e3214e97de63bb5ce556201a7ec

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri Mar  8 16:55:05 2013 +0100

add debug log when cancelling a downtime

---

 common/downtime.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/common/downtime.c b/common/downtime.c
index 5c29cd9..cf6f4c0 100644
--- a/common/downtime.c
+++ b/common/downtime.c
@@ -156,6 +156,8 @@ int unschedule_downtime(int type, unsigned long downtime_id) {
 			svc->pending_flex_downtime--;
 	}
 
+    log_debug_info(DEBUGL_DOWNTIME, 0, "Cancelling %s downtime (id=%lu)\n", temp_downtime->type == HOST_DOWNTIME ? "host" : "service", temp_downtime->downtime_id);
+
 	/* decrement the downtime depth variable and update status data if necessary */
 	if (temp_downtime->is_in_effect == TRUE) {
 





More information about the icinga-checkins mailing list