From a85773ee6dbe07a8eda650a4f51c7611caa4af85 Mon Sep 17 00:00:00 2001 From: Andrew Beekhof Date: Mon, 16 Apr 2012 20:20:26 +1000 Subject: [PATCH] Low: crmd: Move some debug logs to trace --- crmd/cib.c | 2 +- crmd/fsa.c | 12 +----------- crmd/te_callbacks.c | 3 ++- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/crmd/cib.c b/crmd/cib.c index b9bd544cc87..51f0f2eea3b 100644 --- a/crmd/cib.c +++ b/crmd/cib.c @@ -66,7 +66,7 @@ do_cib_updated(const char *event, xmlNode * msg) if (get_xpath_object ("//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED "//" XML_CIB_TAG_CRMCONFIG, msg, - LOG_DEBUG) != NULL) { + LOG_TRACE) != NULL) { mainloop_set_trigger(config_read); } } diff --git a/crmd/fsa.c b/crmd/fsa.c index 57ddf91fbf5..936242cded1 100644 --- a/crmd/fsa.c +++ b/crmd/fsa.c @@ -137,18 +137,8 @@ do_fsa_action(fsa_data_t * fsa_data, long long an_action, enum crmd_fsa_state cur_state, enum crmd_fsa_input cur_input, fsa_data_t * msg_data)) { - int action_log_level = LOG_DEBUG; - - /* The calls to fsa_action2string() is expensive, - * only make it if we will use the result - */ - - if (an_action & A_MSG_ROUTE) { - action_log_level = LOG_DEBUG_2; - } - fsa_actions &= ~an_action; - do_crm_log(action_log_level, DOT_PREFIX "\t// %s", fsa_action2string(an_action)); + crm_trace(DOT_PREFIX "\t// %s", fsa_action2string(an_action)); function(an_action, fsa_data->fsa_cause, fsa_state, fsa_data->fsa_input, fsa_data); } diff --git a/crmd/te_callbacks.c b/crmd/te_callbacks.c index a4416732b19..c7aa15599d9 100644 --- a/crmd/te_callbacks.c +++ b/crmd/te_callbacks.c @@ -273,7 +273,8 @@ te_update_diff(const char *event, xmlNode * msg) */ crm_debug("Detected LRM refresh - %d resources updated: Skipping all resource events", updates); - abort_transition(INFINITY, tg_restart, "LRM Refresh", diff); + crm_log_xml_trace(diff, "lrm-refresh"); + abort_transition(INFINITY, tg_restart, "LRM Refresh", NULL); goto bail; } xmlXPathFreeObject(xpathObj);