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,6 +71,7 @@ void State::parseMachines(const std::string & contents)
for (auto & m : oldMachines) for (auto & m : oldMachines)
if (newMachines.find(m.first) == newMachines.end()) { if (newMachines.find(m.first) == newMachines.end()) {
if (m.second->enabled)
printMsg(lvlInfo, format("removing machine %1%") % m.first); printMsg(lvlInfo, format("removing machine %1%") % m.first);
/* Add a disabled Machine object to make sure stats are /* Add a disabled Machine object to make sure stats are
maintained. */ maintained. */