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

@@ -1057,7 +1057,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.
@@ -1104,7 +1104,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);
}
}
@@ -1116,7 +1116,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);
}
}
@@ -1132,7 +1132,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);
}
}
@@ -1144,7 +1144,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);
}
}
@@ -1157,7 +1157,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)
@@ -1178,7 +1178,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);
}
}
@@ -1309,7 +1309,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);
}
}
@@ -1333,7 +1333,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);
}
}
@@ -1642,7 +1642,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);
}
}
@@ -1689,7 +1689,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);
}
}
@@ -1737,7 +1737,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
{
@@ -2235,7 +2235,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);
}
}
@@ -2298,7 +2298,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);
}
}
@@ -2310,7 +2310,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);
}
}
@@ -2355,7 +2355,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);
}
}
@@ -2399,7 +2399,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);
}
}
}