Item logger improvements.

This commit is contained in:
MobiusDevelopment
2022-10-22 21:20:28 +00:00
parent 74e6acc388
commit 742bf023d2
29 changed files with 429 additions and 429 deletions

View File

@@ -1109,7 +1109,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not remove augmentation for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not remove augmentation for " + this + " from DB: ", e);
}
// Notify to scripts.
@@ -1156,7 +1156,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not restore augmentation and elemental data for item " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not restore augmentation and elemental data for " + this + " from DB: ", e);
}
}
@@ -1168,7 +1168,7 @@ public class Item extends WorldObject
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Could not update atributes for item: " + toString() + " from DB:", e);
LOGGER.log(Level.SEVERE, "Item could not update atributes for " + this + " from DB:", e);
}
}
@@ -1184,7 +1184,7 @@ public class Item extends WorldObject
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Could not update atributes for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not update atributes for " + this + " from DB: ", e);
}
}
@@ -1196,7 +1196,7 @@ public class Item extends WorldObject
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Could not update elementals for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not update elementals for " + this + " from DB: ", e);
}
}
@@ -1209,7 +1209,7 @@ public class Item extends WorldObject
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Could not update elementals for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not update elementals for " + this + " from DB: ", e);
}
if (_elementals == null)
@@ -1230,7 +1230,7 @@ public class Item extends WorldObject
}
catch (SQLException e)
{
LOGGER.log(Level.SEVERE, "Could not update elementals for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not update elementals for " + this + " from DB: ", e);
}
}
@@ -1361,7 +1361,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not remove elemental enchant for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not remove elemental enchant for " + this + " from DB: ", e);
}
}
@@ -1385,7 +1385,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not remove all elemental enchant for item: " + toString() + " from DB: ", e);
LOGGER.log(Level.SEVERE, "Item could not remove all elemental enchant for " + this + " from DB: ", e);
}
}
@@ -1694,7 +1694,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not update item " + this + " in DB: Reason: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Item could not update " + this + " in DB: Reason: " + e.getMessage(), e);
}
}
@@ -1741,7 +1741,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not insert item " + this + " into DB: Reason: " + e.getMessage(), e);
LOGGER.log(Level.SEVERE, "Item could not insert " + this + " into DB: Reason: " + e.getMessage(), e);
}
}
@@ -1789,7 +1789,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.SEVERE, "Could not delete item " + this + " in DB ", e);
LOGGER.log(Level.SEVERE, "Item could not delete " + this + " in DB ", e);
}
finally
{
@@ -2321,7 +2321,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Couldn't remove special ability for item: " + this, e);
LOGGER.log(Level.WARNING, "Item could not remove special ability for " + this, e);
}
}
@@ -2384,7 +2384,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Couldn't restore special abilities for item: " + this, e);
LOGGER.log(Level.WARNING, "Item could not restore special abilities for " + this, e);
}
}
@@ -2396,7 +2396,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Couldn't update item special abilities", e);
LOGGER.log(Level.WARNING, "Item could not update item special abilities", e);
}
}
@@ -2441,7 +2441,7 @@ public class Item extends WorldObject
}
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Couldn't update item special abilities", e);
LOGGER.log(Level.WARNING, "Item could not update item special abilities", e);
}
}
@@ -2485,7 +2485,7 @@ public class Item extends WorldObject
}
else if (id != 0)
{
LOGGER.info("applyEnchantStats: Couldn't find option: " + id);
LOGGER.info("Item applyEnchantStats could not find option " + id + " " + this + " " + player);
}
}
}