mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-21 07:49:13 +00:00
Tweak database connection confirmation messages
This commit is contained in:
@@ -130,10 +130,12 @@ public class BukkitHuskSync extends JavaPlugin implements HuskSync {
|
|||||||
|
|
||||||
// Prepare database connection
|
// Prepare database connection
|
||||||
this.database = new MySqlDatabase(this);
|
this.database = new MySqlDatabase(this);
|
||||||
log(Level.INFO, "Attempting to establish connection to the " + settings.getDatabaseType().getDisplayName() + " database...");
|
log(Level.INFO, String.format("Attempting to establish connection to the %s database...",
|
||||||
|
settings.getDatabaseType().getDisplayName()));
|
||||||
this.database.initialize();
|
this.database.initialize();
|
||||||
if (initialized.get()) {
|
if (initialized.get()) {
|
||||||
log(Level.INFO, "Successfully established a connection to the database");
|
log(Level.INFO, String.format("Successfully established a connection to the %s database",
|
||||||
|
settings.getDatabaseType().getDisplayName()));
|
||||||
} else {
|
} else {
|
||||||
throw new HuskSyncInitializationException("Failed to establish a connection to the database. " +
|
throw new HuskSyncInitializationException("Failed to establish a connection to the database. " +
|
||||||
"Please check the supplied database credentials in the config file");
|
"Please check the supplied database credentials in the config file");
|
||||||
|
|||||||
Reference in New Issue
Block a user