From 0767b6966e07d7013c7a166400f49a0ac8edfd37 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Tue, 14 Sep 2021 12:23:56 -0500 Subject: [PATCH] Fix log message formatting when classes not owned by plugins use sysout (#6604) --- patches/server/Add-System.out-err-catcher.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Add-System.out-err-catcher.patch b/patches/server/Add-System.out-err-catcher.patch index ea5680f9a..e9cdbb059 100644 --- a/patches/server/Add-System.out-err-catcher.patch +++ b/patches/server/Add-System.out-err-catcher.patch @@ -94,7 +94,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } catch (final IllegalArgumentException | IllegalStateException e) { + // If anything happens, the calling class doesn't exist, there is no JavaPlugin that "owns" the calling class, etc + // Just print out normally, with some added information -+ Bukkit.getLogger().log(this.level, String.format("[%s] %s %s", this.prefix, clazz.getName(), line)); ++ Bukkit.getLogger().log(this.level, String.format("%s[%s] %s", this.prefix, clazz.getName(), line)); + } + } + }