[icinga-checkins] icinga.org: icinga-core/next: core: log error reason when failing to create the status file (Ulf Lange) #2560

git at icinga.org git at icinga.org
Fri Apr 27 19:06:00 CEST 2012


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Apr 27 10:00:07 2012 +0200

core: log error reason when failing to create the status file (Ulf Lange) #2560

fixes #2560

---

 Changelog          |    1 +
 xdata/xsddefault.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 844897d..96b6b19 100644
--- a/Changelog
+++ b/Changelog
@@ -84,6 +84,7 @@ FIXES
 * core: drop abbreviations in debug log and make them more telling #2138 - MF
 * core: remove deprecated code for log_external_commands_user #1619 - MF
 * core: fix scheduled_downtime_depth falsely incremented if in flexible downtime with duration < end-starttime window #2536 - MF
+* core: log error reason when failing to create the status file (Ulf Lange) #2560 - MF
 
 * classic ui: Fixed status totals are wrong when searching #1524 - RB
 * classic ui: Fixed wrong URLs for status.cgi overview #2173 - RB
diff --git a/xdata/xsddefault.c b/xdata/xsddefault.c
index d2e68f6..42e0b08 100644
--- a/xdata/xsddefault.c
+++ b/xdata/xsddefault.c
@@ -367,7 +367,7 @@ int xsddefault_save_status_data(void) {
 	if ((fd = mkstemp(temp_file)) == -1) {
 
 		/* log an error */
-		logit(NSLOG_RUNTIME_ERROR, TRUE, "Error: Unable to create temp file for writing status data: %s\n", strerror(errno));
+		logit(NSLOG_RUNTIME_ERROR, TRUE, "Error: Unable to create temp file '%s' for writing status data: %s\n", temp_file, strerror(errno));
 
 		/* free memory */
 		my_free(temp_file);





More information about the icinga-checkins mailing list