File pacemaker-tools-show-RAs-debug-verbose-mode-crm_resource-force.patch of Package pacemaker.14737
commit d74fb415adf1b45ceb1cfb465e7faa1703219975
Author: Keisuke MORI <kskmori@intellilink.co.jp>
Date: Fri Oct 13 09:47:35 2017 +0900
Low: tools: show RAs debug logs only when verbose mode for crm_resource --force-*
diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c
index 3b1255a09..1ddd1aa12 100644
--- a/tools/crm_resource_runtime.c
+++ b/tools/crm_resource_runtime.c
@@ -1525,6 +1525,7 @@ cli_resource_execute(const char *rsc_id, const char *rsc_action, GHashTable *ove
}
+ setenv("HA_debug", do_trace ? "1" : "0", 1);
if(do_trace) {
setenv("OCF_TRACE_RA", "1", 1);
}