File bug-883567_pacemaker-log-initialization.patch of Package pacemaker.9287
commit 68d099d3f0b86ab8149ed92cbecb20884a7b065b
Author: David Vossel <dvossel@redhat.com>
Date: Thu Aug 21 22:40:18 2014 -0400
Fix: logging: correctly initialized default log file
We were accidently disabling the initialization of the
default /var/log/pacemaker.log configuration file when
no PCMK_debugfile environment variable is present.
diff --git a/lib/common/logging.c b/lib/common/logging.c
index fadeb6d..d64b77a 100644
--- a/lib/common/logging.c
+++ b/lib/common/logging.c
@@ -249,7 +249,7 @@ crm_add_logfile(const char *filename)
}
if(is_default && default_fd >= 0) {
- return FALSE; /* Nothing to do */
+ return TRUE; /* Nothing to do */
}
/* Check the parent directory */