Make database console error messages clearer

This commit is contained in:
Eric 2018-11-05 17:02:16 +01:00
parent d55cc4c8fe
commit 4c6c87dc08
2 changed files with 9 additions and 9 deletions

View File

@ -165,7 +165,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to remove shop from database");
plugin.debug("Failed to remove shop from database (#" + shop.getID() + ")");
plugin.debug(ex);
}
@ -204,7 +204,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to check if shop exists in the database");
plugin.debug("Failed to check if shop with ID exists (#" + id + ")");
plugin.debug(ex);
}
@ -274,7 +274,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to get shops from database");
plugin.debug("Failed to get shops");
plugin.debug(ex);
}
@ -338,7 +338,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to add shop to database");
plugin.debug("Failed to add shop to database (#" + shop.getID() + ")");
plugin.debug(ex);
}
@ -387,7 +387,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to log economy transaction to database");
plugin.debug("Failed to log economy transaction to database");
plugin.debug(ex);
}
@ -493,7 +493,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to get revenue from database");
plugin.debug("Failed to get revenue from player \"" + player.getUniqueId().toString() + "\"");
plugin.debug(ex);
}
@ -529,7 +529,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to log last logout to database");
plugin.debug("Failed to log logout to database");
plugin.debug(ex);
}
@ -573,7 +573,7 @@ public abstract class Database {
callback.callSyncError(ex);
}
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to get last logout from database");
plugin.debug("Failed to get last logout from player \"" + player.getName() + "\"");
plugin.debug(ex);
}

View File

@ -54,7 +54,7 @@ public class SQLite extends Database {
plugin.debug("Vacuumed SQLite database");
} catch (final SQLException ex) {
plugin.getLogger().severe("Failed to access database");
plugin.getLogger().severe("Failed to vacuum database");
plugin.debug("Failed to vacuum database");
plugin.debug(ex);
}