Skip to content

Commit

Permalink
Add sched_op debug flag tag to log messages
Browse files Browse the repository at this point in the history
[sched_op] tag was missing for some debug messages. Fixes #3360.
  • Loading branch information
Rytiss authored Nov 11, 2019
1 parent e1164f2 commit 4310a2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/cs_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ bool CLIENT_STATE::scheduler_rpc_poll() {
p = next_project_sched_rpc_pending();
if (p) {
if (log_flags.sched_op_debug) {
msg_printf(p, MSG_INFO, "sched RPC pending: %s",
msg_printf(p, MSG_INFO, "[sched_op] sched RPC pending: %s",
rpc_reason_string(p->sched_rpc_pending)
);
}
Expand Down Expand Up @@ -664,7 +664,7 @@ int CLIENT_STATE::handle_scheduler_reply(

if (log_flags.sched_op_debug && sr.request_delay) {
msg_printf(project, MSG_INFO,
"Project requested delay of %.0f seconds", sr.request_delay
"[sched_op] Project requested delay of %.0f seconds", sr.request_delay
);
}

Expand All @@ -690,7 +690,7 @@ int CLIENT_STATE::handle_scheduler_reply(
if (gstate.acct_mgr_info.using_am() && p && q && !strcmp(p, q)) {
if (log_flags.sched_op_debug) {
msg_printf(project, MSG_INFO,
"ignoring prefs from project; using prefs from AM"
"[sched_op] ignoring prefs from project; using prefs from AM"
);
}
} else if (!global_prefs.host_specific || sr.scheduler_version >= 507) {
Expand All @@ -707,7 +707,7 @@ int CLIENT_STATE::handle_scheduler_reply(
} else {
if (log_flags.sched_op_debug) {
msg_printf(project, MSG_INFO,
"ignoring prefs from old server; we have host-specific prefs"
"[sched_op] ignoring prefs from old server; we have host-specific prefs"
);
}
}
Expand Down

0 comments on commit 4310a2a

Please sign in to comment.