Ver código fonte

Remove excessive logging on using Recanter's Cloak in siege of Tower

Ivan Savenko 1 ano atrás
pai
commit
1519de60bf
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      lib/spells/ObstacleCasterProxy.cpp

+ 2 - 1
lib/spells/ObstacleCasterProxy.cpp

@@ -71,7 +71,8 @@ SilentCaster::SilentCaster(PlayerColor owner_, const Caster * hero_):
 
 
 void SilentCaster::getCasterName(MetaString & text) const
 void SilentCaster::getCasterName(MetaString & text) const
 {
 {
-	logGlobal->error("Unexpected call to SilentCaster::getCasterName");
+	// NOTE: can be triggered (for example) if creature steps into Tower mines/moat while hero has Recanter's Cloak
+	logGlobal->debug("Unexpected call to SilentCaster::getCasterName");
 }
 }
 
 
 void SilentCaster::getCastDescription(const Spell * spell, const std::vector<const battle::Unit *> & attacked, MetaString & text) const
 void SilentCaster::getCastDescription(const Spell * spell, const std::vector<const battle::Unit *> & attacked, MetaString & text) const