Skip to content

Commit

Permalink
Merge pull request #813 from gao-yan/cib-forward-request-message
Browse files Browse the repository at this point in the history
Log: cib: Downgrade the log message on forwarding CRM_OP_NOOP requests  from INFO to DEBUG
  • Loading branch information
beekhof committed Oct 16, 2015
2 parents 10335b8 + 1825e58 commit d63f66f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions cib/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,13 +1006,19 @@ cib_process_request(xmlNode * request, gboolean force_synchronous, gboolean priv
if (needs_forward) {
const char *host = crm_element_value(request, F_CIB_HOST);
const char *section = crm_element_value(request, F_CIB_SECTION);
int log_level = LOG_INFO;

crm_info("Forwarding %s operation for section %s to %s (origin=%s/%s/%s)",
op,
section ? section : "'all'",
host ? host : "master",
originator ? originator : "local",
client_name, call_id);
if (safe_str_eq(op, CRM_OP_NOOP)) {
log_level = LOG_DEBUG;
}

do_crm_log(log_level,
"Forwarding %s operation for section %s to %s (origin=%s/%s/%s)",
op,
section ? section : "'all'",
host ? host : "master",
originator ? originator : "local",
client_name, call_id);

forward_request(request, cib_client, call_options);
return;
Expand Down

0 comments on commit d63f66f

Please sign in to comment.