From db56892f0d549d9c960eaeab6e9d3a8620bb8999 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sun, 9 Feb 2014 12:35:35 -0600 Subject: [PATCH] Moved Integration Exceptions behind a Setting. --- core/AELog.java | 8 ++++++++ integration/IntegrationNode.java | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/AELog.java b/core/AELog.java index 1f45a9811..68fb6586f 100644 --- a/core/AELog.java +++ b/core/AELog.java @@ -50,4 +50,12 @@ public class AELog e.printStackTrace(); } } + + public static void integration(Throwable exception) + { + if ( AEConfig.instance.isFeatureEnabled( AEFeature.IntegrationLogging ) ) + { + error( exception ); + } + } } diff --git a/integration/IntegrationNode.java b/integration/IntegrationNode.java index eae69182f..24bd7d6de 100644 --- a/integration/IntegrationNode.java +++ b/integration/IntegrationNode.java @@ -3,8 +3,8 @@ package appeng.integration; import java.lang.reflect.Field; import appeng.api.exceptions.ModNotInstalled; -import appeng.core.AELog; import appeng.core.AEConfig; +import appeng.core.AELog; import cpw.mods.fml.common.Loader; public class IntegrationNode @@ -89,7 +89,7 @@ public class IntegrationNode { AELog.info( displayName + " - Integration Disabled" ); if ( !(exception instanceof ModNotInstalled) ) - AELog.error( exception ); + AELog.integration( exception ); } else {