Don't show redundant "removing machine..." messages

This commit is contained in:
Eelco Dolstra 2015-10-30 18:22:43 +01:00
parent f8ee98f455
commit 2d128d2a6f

View file

@ -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<Machine>(*(m.second));