Update debug logs to info level with debug tags

Changed log.debug calls to log.info with "DEBUG" tags for consistency and improved visibility during debugging. This will ensure that debug information appears in the logs without changing log level settings.
This commit is contained in:
Teriuihi 2024-10-18 21:49:57 +02:00
parent 941b7d0d8f
commit 73cfb772b1
3 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ public class AbilityMob implements Runnable {
if (mob.isDead()) {
cancelTask();
if (Config.SETTINGS.DEBUG) {
log.debug("Entity died, cancelling ability task");
log.info("DEBUG: Entity died, cancelling ability task");
}
return;
}

View File

@ -43,7 +43,7 @@ public class AbilityThread {
return;
}
if (tasksMap.containsKey(identifier)) {
log.debug("Already scheduled task with identifier {}, skipping", identifier);
log.info("DEBUG: Already scheduled task with identifier {}, skipping", identifier);
return;
}
Future<?> future = executorService.submit(() -> {

View File

@ -30,7 +30,7 @@ public class Spawn extends SubCommand {
@Override
public boolean onCommand(CommandSender commandSender, String[] args) {
if (args.length != 3 && args.length != 7) {
log.debug("Invalid argument length: {} expected 2 or 6", args.length);
log.info("DEBUG: Invalid argument length: {} expected 2 or 6", args.length);
return false;
}
Optional<MobType> optionalMobType = MobTypes.MOB_TYPES.get(args[1]);
@ -43,7 +43,7 @@ public class Spawn extends SubCommand {
try {
entityType = EntityType.valueOf(args[2]);
} catch (IllegalArgumentException e) {
log.debug("Invalid mob type {}", args[2]);
log.info("DEBUG: Invalid mob type {}", args[2]);
return false;
}
if (!entityType.isSpawnable() || !isMob(entityType)) {
@ -66,7 +66,7 @@ public class Spawn extends SubCommand {
} else if (args.length == 7) {
return getLocation(args);
} else {
log.debug("Expected player with argument length of 2");
log.info("DEBUG: Expected player with argument length of 2");
return Optional.empty();
}
}
@ -82,7 +82,7 @@ public class Spawn extends SubCommand {
double z = Double.parseDouble(args[6]);
return Optional.of(new Location(world, x, y, z));
} catch (NumberFormatException e) {
log.debug("Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
log.info("DEBUG: Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
return Optional.empty();
}
}