Merge pull request #973 from yueh/feature-improve-security-audit-log

Some further improvements to the security audit
This commit is contained in:
yueh 2015-03-07 16:37:59 +01:00
commit 311939c63c
3 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ public class DimensionalCoord extends WorldCoord
@Override
public String toString()
{
return this.dimId + "," + super.toString();
return "dimension=" + this.dimId + ", " + super.toString();
}
public World getWorld()

View file

@ -148,7 +148,7 @@ public class WorldCoord
@Override
public String toString()
{
return "" + this.x + "," + this.y + "," + this.z;
return "x=" + this.x + ", y=" + this.y + ", z=" + this.z;
}
@Override

View file

@ -66,8 +66,8 @@ public class GridConnection implements IGridConnection, IPathItem
final DimensionalCoord aCoordinates = a.getGridBlock().getLocation();
final DimensionalCoord bCoordinates = b.getGridBlock().getLocation();
AELog.info( "Security audit 1 failed at [x=%d, y=%d, z=%d] belonging to player [id=%d]", aCoordinates.x, aCoordinates.y, aCoordinates.z, a.playerID );
AELog.info( "Security audit 2 failed at [x=%d, y=%d, z=%d] belonging to player [id=%d]", bCoordinates.x, bCoordinates.y, bCoordinates.z, b.playerID );
AELog.info( "Security audit 1 failed at [%s] belonging to player [id=%d]", aCoordinates.toString(), a.playerID );
AELog.info( "Security audit 2 failed at [%s] belonging to player [id=%d]", bCoordinates.toString(), b.playerID );
}
throw new FailedConnection();