From 87fc7bde5ae889abb817ba853fefbcb0a4022e61 Mon Sep 17 00:00:00 2001 From: filoghost Date: Thu, 30 May 2019 12:01:16 +0200 Subject: [PATCH] Only show stacktrace error in debug mode --- .../holographicdisplays/util/reflection/ReflectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/reflection/ReflectionUtils.java b/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/reflection/ReflectionUtils.java index 8f944dfb..705c2036 100644 --- a/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/reflection/ReflectionUtils.java +++ b/Utils/src/main/java/com/gmail/filoghost/holographicdisplays/util/reflection/ReflectionUtils.java @@ -64,7 +64,7 @@ public class ReflectionUtils { } } } catch (Throwable t) { - ConsoleLogger.log(Level.WARNING, "Unable to get a stack trace element, please inform the developer. You will only see this error once and a fallback method will be used.", t); + ConsoleLogger.logDebug(Level.WARNING, "Unable to get a stack trace element. This error will only show once and a fallback method will be used.", t); stackTraceError = true; } }