Skip to content

Commit

Permalink
Low: crmd: Move some debug logs to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Apr 19, 2012
1 parent fc0a406 commit a85773e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crmd/cib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
12 changes: 1 addition & 11 deletions crmd/fsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
3 changes: 2 additions & 1 deletion crmd/te_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a85773e

Please sign in to comment.