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

@@ -1052,7 +1052,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.
@@ -1099,7 +1099,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);
}
}
@@ -1111,7 +1111,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);
}
}
@@ -1127,7 +1127,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);
}
}
@@ -1139,7 +1139,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);
}
}
@@ -1152,7 +1152,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)
@@ -1173,7 +1173,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);
}
}
@@ -1304,7 +1304,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);
}
}
@@ -1328,7 +1328,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);
}
}
@@ -1635,7 +1635,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);
}
}
@@ -1680,7 +1680,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);
}
}
@@ -1728,7 +1728,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
{
@@ -2144,7 +2144,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);
}
}
}