Some further improvements to the security audit

This commit is contained in:
yueh 2015-03-05 14:52:00 +01:00
parent 0b15c56037
commit 1bcf7f9d52
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

@ -66,8 +66,8 @@ public class GridConnection implements IGridConnection, IPathItem
final DimensionalCoord aCoordinates = a.getGridBlock().getLocation(); final DimensionalCoord aCoordinates = a.getGridBlock().getLocation();
final DimensionalCoord bCoordinates = b.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 1 failed at [%s] belonging to player [id=%d]", aCoordinates.toString(), 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 2 failed at [%s] belonging to player [id=%d]", bCoordinates.toString(), b.playerID );
} }
throw new FailedConnection(); throw new FailedConnection();