From 2c4ff3579680a35e1ab07d6b2d77fa45015f808e Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sat, 30 Sep 2017 17:51:32 +0200 Subject: [PATCH] Ensure LOGGER is not equal to plugin logger before setting parent (#1570) --- Essentials/src/com/earth2me/essentials/Essentials.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 79639ba9d..3e7209fa1 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -155,7 +155,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials { @Override public void onEnable() { try { - LOGGER.setParent(this.getLogger()); + if (LOGGER != this.getLogger()) { + LOGGER.setParent(this.getLogger()); + } execTimer = new ExecuteTimer(); execTimer.start(); i18n = new I18n(this);