Skip to content
Snippets Groups Projects
Commit 03c96132 authored by Danny Auble's avatar Danny Auble
Browse files

CNCU - Minor debug format changes.

parent bff36c39
No related branches found
No related tags found
No related merge requests found
...@@ -250,14 +250,13 @@ extern int container_p_restore(char *dir_name, bool recover) ...@@ -250,14 +250,13 @@ extern int container_p_restore(char *dir_name, bool recover)
for (i = 0; i < job_id_count; i++) { for (i = 0; i < job_id_count; i++) {
if (job_id_array[i] == 0) if (job_id_array[i] == 0)
continue; continue;
if (recover) { if (enable_debug)
info("%s: recovered job(%u)", info("%s: %s job(%u)",
plugin_type, job_id_array[i]); plugin_type,
} else { recover ? "recovered" : "purging",
info("%s: purging job(%u)", job_id_array[i]);
plugin_type, job_id_array[i]); if (!recover)
job_id_array[i] = 0; job_id_array[i] = 0;
}
} }
xfree(state_dir); xfree(state_dir);
...@@ -272,7 +271,8 @@ extern int container_p_create(uint32_t job_id) ...@@ -272,7 +271,8 @@ extern int container_p_create(uint32_t job_id)
int i, empty = -1, found = -1; int i, empty = -1, found = -1;
bool job_id_change = false; bool job_id_change = false;
info("%s: creating(%u)", plugin_type, job_id); if (enable_debug)
info("%s: creating(%u)", plugin_type, job_id);
slurm_mutex_lock(&context_lock); slurm_mutex_lock(&context_lock);
for (i = 0; i < job_id_count; i++) { for (i = 0; i < job_id_count; i++) {
if (job_id_array[i] == 0) { if (job_id_array[i] == 0) {
...@@ -369,7 +369,8 @@ extern int container_p_delete(uint32_t job_id) ...@@ -369,7 +369,8 @@ extern int container_p_delete(uint32_t job_id)
int i, found = -1; int i, found = -1;
bool job_id_change = false; bool job_id_change = false;
info("%s: deleting(%u)", plugin_type, job_id); if (enable_debug)
info("%s: deleting(%u)", plugin_type, job_id);
slurm_mutex_lock(&context_lock); slurm_mutex_lock(&context_lock);
for (i = 0; i < job_id_count; i++) { for (i = 0; i < job_id_count; i++) {
if (job_id_array[i] == job_id) { if (job_id_array[i] == job_id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment