Add extra logging

This commit is contained in:
Draycia committed 2020-08-05 04:51:03 -07:00
1 parent 8dd08c2389
commit 0d4636a940
1 file changed
+3
@@ -50,14 +50,17 @@ public final class CarbonChat extends JavaPlugin {
contextManager = new ContextManager();
if (getConfig().getBoolean("redis.enabled")) {
getLogger().info("Enabling Redis support!");
redisManager = new RedisManager(this);
}
String storageType = getConfig().getString("storage.type");
if (storageType.equalsIgnoreCase("mysql")) {
getLogger().info("Enabling MySQL storage!");
userService = new MySQLUserService(this);
} else if (storageType.equalsIgnoreCase("json")) {
getLogger().info("Enabling JSON storage!");
userService = new JSONUserService(this);
} else {
getLogger().warning("Invalid storage type selected! Falling back to JSON.");