Don't show redundant "removing machine..." messages
This commit is contained in:
		| @@ -71,7 +71,8 @@ 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()) { | ||||||
|             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 |             /* Add a disabled Machine object to make sure stats are | ||||||
|                maintained. */ |                maintained. */ | ||||||
|             auto machine = std::make_shared<Machine>(*(m.second)); |             auto machine = std::make_shared<Machine>(*(m.second)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user