From ccbe75781bbb1509e66915d72176e4d97656d783 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 6 Apr 2013 16:12:52 +0200 Subject: [PATCH] hydra-queue-runner: don't clutter the system log with debug message Avoid the frequently printed hydra-queue-runner[10293]: system type `x86_64-linux': 2 active, 2 allowed, starting 0 builds message. That information is only interesting when some build are actually started. --- src/script/hydra-queue-runner | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/script/hydra-queue-runner b/src/script/hydra-queue-runner index da905d2d..5d9d956f 100755 --- a/src/script/hydra-queue-runner +++ b/src/script/hydra-queue-runner @@ -111,9 +111,11 @@ sub checkBuilds { { join => ['project'], order_by => ["priority DESC", "timestamp"], rows => $extraAllowed }); - print "system type `", $system->system, - "': $nrActive active, $max allowed, ", - "starting ", scalar(@builds), " builds\n"; + if (scalar(@builds) > 0) { + print "system type `", $system->system, + "': $nrActive active, $max allowed, ", + "starting ", scalar(@builds), " builds\n"; + } foreach my $build (@builds) { my $depbuild = findBuildDependencyInQueue($build);