From 09e2a753b092462f50911ae58ef951153fdf8932 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 27 Nov 2002 18:39:35 +0000
Subject: [PATCH] Make logging of job id a debug option except for batch jobs.

---
 src/common/slurm_protocol_pack.c | 2 +-
 src/srun/srun.c                  | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/common/slurm_protocol_pack.c b/src/common/slurm_protocol_pack.c
index 4af7502e2a1..07db1677604 100644
--- a/src/common/slurm_protocol_pack.c
+++ b/src/common/slurm_protocol_pack.c
@@ -803,7 +803,7 @@ _unpack_resource_allocation_response_msg(resource_allocation_response_msg_t
 	} else
 		tmp_ptr->node_addr = NULL;
 
-	info("job id is %u", tmp_ptr->job_id);
+	debug("job id is %u", tmp_ptr->job_id);
 	return SLURM_SUCCESS;
 
       unpack_error:
diff --git a/src/srun/srun.c b/src/srun/srun.c
index bc7e016d87f..e2e255e4188 100644
--- a/src/srun/srun.c
+++ b/src/srun/srun.c
@@ -177,8 +177,6 @@ main(int ac, char **av)
 		job = job_create(resp); 
 		if (_verbose || _debug)
 			_print_job_information(resp);
-		else
-			printf("jobid %u\n", resp->job_id); 
 		_run_job_script(resp->job_id);
 		slurm_complete_job(resp->job_id, 0, 0);
 
@@ -190,8 +188,6 @@ main(int ac, char **av)
 			exit(1);
 		if (_verbose || _debug)
 			_print_job_information(resp);
-		else
-			printf("jobid %u\n", resp->job_id); 
 
 		job = job_create(resp); 
 		_create_job_step(job);
-- 
GitLab