Added logging for security audits.

This commit is contained in:
AlgorithmX2
2014-09-04 22:08:07 -05:00
parent b86e728f04
commit b8d0db995b
3 changed files with 17 additions and 1 deletions
+5
View File
@@ -1504,6 +1504,11 @@ public class Platform
boolean a_isSecure = isPowered( a.getGrid() ) && a.lastSecurityKey != -1;
boolean b_isSecure = isPowered( b.getGrid() ) && b.lastSecurityKey != -1;
if ( AEConfig.instance.isFeatureEnabled( AEFeature.LogSecurityAudits ) )
{
AELog.info( "Audit: " + a_isSecure + " : " + b_isSecure + " @ " + a.lastSecurityKey + " vs " + b.lastSecurityKey );
}
// can't do that son...
if ( a_isSecure && b_isSecure )
return true;