From eed44530e26f24d491b0e226b4373b8473802fa6 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 5 Apr 2006 18:17:16 +0000
Subject: [PATCH] Disable some messsage with --quiet or -Q option:   job %u
 queued and waiting for resources   job %u has been allocated resources

---
 src/srun/allocate.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/srun/allocate.c b/src/srun/allocate.c
index cd3712e844c..7be02fb7279 100644
--- a/src/srun/allocate.c
+++ b/src/srun/allocate.c
@@ -193,7 +193,8 @@ _wait_for_resources(resource_allocation_response_msg_t **resp)
 	resource_allocation_response_msg_t *r = *resp;
 	int sleep_time = MIN_ALLOC_WAIT;
 
-	info ("job %u queued and waiting for resources", r->job_id);
+	if (!opt.quiet)
+		info ("job %u queued and waiting for resources", r->job_id);
 
 	old.job_id = r->job_id;
 	slurm_free_resource_allocation_response_msg(r);
@@ -220,7 +221,8 @@ _wait_for_resources(resource_allocation_response_msg_t **resp)
 		if (sleep_time < MAX_ALLOC_WAIT)
 			sleep_time++;
 	}
-	info ("job %u has been allocated resources", (*resp)->job_id);
+	if (!opt.quiet)
+		info ("job %u has been allocated resources", (*resp)->job_id);
 }
 
 /* Wait up to sleep_time for RPC from slurmctld indicating resource allocation
-- 
GitLab