commit 32a30ee51d3d16e4ad33c329c047030f3060afe0 Author: Andrew Beekhof Date: Thu Oct 3 21:01:38 2013 +1000 Fix: cli: Do not enabled blackbox for cli tools (cherry picked from commit ab0f2fede2a8ddfa250a8ea5e57fea0b79348edb) diff --git a/lib/common/logging.c b/lib/common/logging.c index 84884ac..0b85093 100644 --- a/lib/common/logging.c +++ b/lib/common/logging.c @@ -697,7 +697,7 @@ crm_log_init(const char *entity, int level, gboolean daemon, gboolean to_stderr, crm_add_logfile(logfile); } - if (daemon_option_enabled(crm_system_name, "blackbox")) { + if (crm_is_daemon && daemon_option_enabled(crm_system_name, "blackbox")) { crm_enable_blackbox(0); }