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

@@ -1113,7 +1113,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.
@@ -1160,7 +1160,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);
}
}
@@ -1172,7 +1172,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);
}
}
@@ -1188,7 +1188,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);
}
}
@@ -1200,7 +1200,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);
}
}
@@ -1213,7 +1213,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)
@@ -1234,7 +1234,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);
}
}
@@ -1365,7 +1365,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);
}
}
@@ -1389,7 +1389,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);
}
}
@@ -1698,7 +1698,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);
}
}
@@ -1745,7 +1745,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);
}
}
@@ -1793,7 +1793,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
{
@@ -2334,7 +2334,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);
}
}
@@ -2397,7 +2397,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);
}
}
@@ -2409,7 +2409,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);
}
}
@@ -2454,7 +2454,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);
}
}
@@ -2498,7 +2498,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);
}
}
}