From 2d128d2a6f0f1e710c8e5a2ba63a551c9912e638 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 30 Oct 2015 18:22:43 +0100 Subject: [PATCH] Don't show redundant "removing machine..." messages --- src/hydra-queue-runner/hydra-queue-runner.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index faf5a24e..51b26336 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -71,7 +71,8 @@ void State::parseMachines(const std::string & contents) for (auto & m : oldMachines) if (newMachines.find(m.first) == newMachines.end()) { - printMsg(lvlInfo, format("removing machine ‘%1%’") % m.first); + if (m.second->enabled) + printMsg(lvlInfo, format("removing machine ‘%1%’") % m.first); /* Add a disabled Machine object to make sure stats are maintained. */ auto machine = std::make_shared(*(m.second));