Moved Integration Exceptions behind a Setting.

This commit is contained in:
AlgorithmX2 2014-02-09 12:35:35 -06:00
parent 2286be4998
commit db56892f0d
2 changed files with 10 additions and 2 deletions

View file

@ -50,4 +50,12 @@ public class AELog
e.printStackTrace();
}
}
public static void integration(Throwable exception)
{
if ( AEConfig.instance.isFeatureEnabled( AEFeature.IntegrationLogging ) )
{
error( exception );
}
}
}

View file

@ -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
{