Removal of unnecessary logs.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-10-10 22:10:51 +00:00
parent beff746963
commit 92d7275afa
91 changed files with 16 additions and 183 deletions

View File

@ -179,7 +179,6 @@ public class TradeList
{
if (_locked)
{
LOGGER.warning(_owner.getName() + ": Attempt to modify locked TradeList!");
return null;
}
@ -192,31 +191,26 @@ public class TradeList
final ItemInstance item = (ItemInstance) o;
if (!(item.isTradeable() || (_owner.isGM() && Config.GM_TRADE_RESTRICTED_ITEMS)) || item.isQuestItem())
{
LOGGER.warning(_owner.getName() + ": Attempt to add a restricted item!");
return null;
}
if (!_owner.getInventory().canManipulateWithItemId(item.getId()))
{
LOGGER.warning(_owner.getName() + ": Attempt to add an item that can't manipualte!");
return null;
}
if ((count <= 0) || (count > item.getCount()))
{
LOGGER.warning(_owner.getName() + ": Attempt to add an item with invalid item count!");
return null;
}
if (!item.isStackable() && (count > 1))
{
LOGGER.warning(_owner.getName() + ": Attempt to add non-stackable item to TradeList with count > 1!");
return null;
}
if ((MAX_ADENA / count) < price)
{
LOGGER.warning(_owner.getName() + ": Attempt to overflow adena !");
return null;
}
@ -224,7 +218,6 @@ public class TradeList
{
if (checkitem.getObjectId() == objectId)
{
LOGGER.warning(_owner.getName() + ": Attempt to add an item that is already present!");
return null;
}
}

View File

@ -784,7 +784,6 @@ public class Attackable extends Npc
final AggroInfo ai = _aggroList.get(target);
if (ai == null)
{
LOGGER.info("Target " + target + " not present in aggro list of " + this);
return;
}

View File

@ -231,7 +231,7 @@ public class SkillChannelizer implements Runnable
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Error while channelizing skill: " + skill + " channelizer: " + _channelizer + " channelized: " + channelized, e);
LOGGER.log(Level.WARNING, "Error while channelizing skill: " + skill + " channelizer: " + _channelizer + " channelized: " + channelized + "; ", e);
}
}
}

View File

@ -128,7 +128,6 @@ public class RequestAcquireSkill implements IClientIncomingPacket
{
if (prevSkillLevel == _level)
{
LOGGER.warning("Player " + player.getName() + " is trying to learn a skill that already knows, Id: " + _id + " level: " + _level + "!");
return;
}

View File

@ -108,7 +108,6 @@ public class RequestBypassToServer implements IClientIncomingPacket
bypassOriginId = player.validateHtmlAction(_command);
if (bypassOriginId == -1)
{
LOGGER.warning("Player " + player.getName() + " sent non cached bypass: '" + _command + "'");
return;
}

View File

@ -92,7 +92,6 @@ public class RequestRestartPoint implements IClientIncomingPacket
}
else if (!player.isDead())
{
LOGGER.warning("Living player [" + player.getName() + "] called RestartPointPacket! Ban this player!");
return;
}