mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Enhance SysoutCatcher
This commit is contained in:
committed by
granny
parent
40ecc3fc06
commit
4b07a47c59
@@ -1,22 +1,14 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
||||||
Date: Mon, 28 Jun 2021 13:33:12 -0500
|
|
||||||
Subject: [PATCH] Enhance SysoutCatcher
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/io/papermc/paper/logging/SysoutCatcher.java b/src/main/java/io/papermc/paper/logging/SysoutCatcher.java
|
|
||||||
index a8e813ca89b033f061e695288b3383bdcf128531..1ab65af9359d19530bba7f985a604d2a430ee234 100644
|
|
||||||
--- a/src/main/java/io/papermc/paper/logging/SysoutCatcher.java
|
--- a/src/main/java/io/papermc/paper/logging/SysoutCatcher.java
|
||||||
+++ b/src/main/java/io/papermc/paper/logging/SysoutCatcher.java
|
+++ b/src/main/java/io/papermc/paper/logging/SysoutCatcher.java
|
||||||
@@ -54,9 +54,9 @@ public final class SysoutCatcher {
|
@@ -54,9 +_,9 @@
|
||||||
final JavaPlugin plugin = JavaPlugin.getProvidingPlugin(clazz);
|
final JavaPlugin plugin = JavaPlugin.getProvidingPlugin(clazz);
|
||||||
|
|
||||||
// Instead of just printing the message, send it to the plugin's logger
|
// Instead of just printing the message, send it to the plugin's logger
|
||||||
- plugin.getLogger().log(this.level, this.prefix + line);
|
- plugin.getLogger().log(this.level, this.prefix + line);
|
||||||
+ plugin.getLogger().log(this.level, /*this.prefix +*/ line); // Purpur - prefix not needed
|
+ plugin.getLogger().log(this.level, /*this.prefix +*/ line); // Purpur - Enhance SysoutCatcher - prefix not needed
|
||||||
|
|
||||||
- if (SysoutCatcher.SUPPRESS_NAGS) {
|
- if (SysoutCatcher.SUPPRESS_NAGS) {
|
||||||
+ if (true || SysoutCatcher.SUPPRESS_NAGS) { // Purpur - nagging is annoying
|
+ if (true || SysoutCatcher.SUPPRESS_NAGS) { // Purpur - Enhance SysoutCatcher - nagging is annoying
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (SysoutCatcher.NAG_INTERVAL > 0 || SysoutCatcher.NAG_TIMEOUT > 0) {
|
if (SysoutCatcher.NAG_INTERVAL > 0 || SysoutCatcher.NAG_TIMEOUT > 0) {
|
||||||
Reference in New Issue
Block a user