From 73cfb772b1a5f7529a89917d4d61816aff946f13 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Fri, 18 Oct 2024 21:49:57 +0200 Subject: [PATCH] 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. --- .../java/com/alttd/custommobs/abilitymob/AbilityMob.java | 2 +- .../com/alttd/custommobs/abilitymob/AbilityThread.java | 2 +- .../com/alttd/custommobs/commands/subcommands/Spawn.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/alttd/custommobs/abilitymob/AbilityMob.java b/src/main/java/com/alttd/custommobs/abilitymob/AbilityMob.java index 99080cd..42dd0b3 100644 --- a/src/main/java/com/alttd/custommobs/abilitymob/AbilityMob.java +++ b/src/main/java/com/alttd/custommobs/abilitymob/AbilityMob.java @@ -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; } diff --git a/src/main/java/com/alttd/custommobs/abilitymob/AbilityThread.java b/src/main/java/com/alttd/custommobs/abilitymob/AbilityThread.java index ce0a999..cb73b87 100644 --- a/src/main/java/com/alttd/custommobs/abilitymob/AbilityThread.java +++ b/src/main/java/com/alttd/custommobs/abilitymob/AbilityThread.java @@ -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(() -> { diff --git a/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java b/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java index a109ad4..ddb4787 100644 --- a/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java +++ b/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java @@ -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 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(); } }