Skip to content

Commit

Permalink
Removed a lot of log spam
Browse files Browse the repository at this point in the history
-Switched many log messages with development purposes from the info channel to the debug channel
  • Loading branch information
Robijnvogel committed Jun 23, 2018
1 parent 5b84baf commit 85b66dd
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/dimdev/ddutils/schem/Schematic.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private void setBlocks(World world, int xBase, int yBase, int zBase) {
long relightTime = 0;
// CubicChunks makes cubic worlds implement ICubicWorld
if (cubicChunks && ((ICubicWorld) world).isCubicWorld()) {
DimDoors.log.info("Setting cube blockstates");
DimDoors.log.debug("Setting cube blockstates");
ICubicWorld cubicWorld = (ICubicWorld) world;
for (int cubeX = 0; cubeX <= (width >> 4) + 1; cubeX++) {
for (int cubeY = 0; cubeY <= (height >> 4) + 1; cubeY++) {
Expand Down Expand Up @@ -433,7 +433,7 @@ private void setBlocks(World world, int xBase, int yBase, int zBase) {
}
}
} else {
DimDoors.log.info("Setting chunk blockstates");
DimDoors.log.debug("Setting chunk blockstates");
for (int chunkX = 0; chunkX <= (width >> 4) + 1; chunkX++) {
for (int chunkZ = 0; chunkZ <= (length >> 4) + 1; chunkZ++) {
long setStart = System.nanoTime();
Expand Down Expand Up @@ -478,6 +478,6 @@ private void setBlocks(World world, int xBase, int yBase, int zBase) {
}
}
world.markBlockRangeForRenderUpdate(xBase, yBase, zBase, xBase + width, yBase + height, zBase + length);
DimDoors.log.info("Set block states in " + setTime / 1000000 + " ms and relit chunks/cubes in " + relightTime / 1000000);
DimDoors.log.debug("Set block states in " + setTime / 1000000 + " ms and relit chunks/cubes in " + relightTime / 1000000);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public final class PocketGenerator {

public static Pocket generatePocketFromTemplate(int dim, PocketTemplate pocketTemplate, VirtualLocation virtualLocation, boolean setup) {
DimDoors.log.info("Generating pockets from template " + pocketTemplate.getId() + " at virtual location " + virtualLocation);
DimDoors.log.info("Generating pocket from template " + pocketTemplate.getId() + " at virtual location " + virtualLocation);

PocketRegistry registry = PocketRegistry.instance(dim);
Pocket pocket = registry.newPocket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void setup(Pocket pocket, VirtualTarget linkTo, LinkProperties linkProper
TileEntity tile = world.getTileEntity(pos);

if (tile instanceof TileEntityRift) {
DimDoors.log.info("Rift found in schematic at " + pos);
DimDoors.log.debug("Rift found in schematic at " + pos);
TileEntityRift rift = (TileEntityRift) tile;
rift.getDestination().setLocation(new Location(rift.getWorld(), rift.getPos()));
rifts.add(rift);
Expand All @@ -210,15 +210,15 @@ public void setup(Pocket pocket, VirtualTarget linkTo, LinkProperties linkProper
if (tile instanceof TileEntityChest || tile instanceof TileEntityDispenser) {
LootTable table;
if (tile instanceof TileEntityChest) {
DimDoors.log.info("Now populating chest.");
DimDoors.log.debug("Now populating chest.");
table = world.getLootTableManager().getLootTableFromLocation(new ResourceLocation(DimDoors.MODID + ":dungeon_chest"));
} else { //(tile instanceof TileEntityDispenser)
DimDoors.log.info("Now populating dispenser.");
DimDoors.log.debug("Now populating dispenser.");
table = world.getLootTableManager().getLootTableFromLocation(new ResourceLocation(DimDoors.MODID + ":dispenser_projectiles"));
}
LootContext ctx = new LootContext.Builder(world).build();
table.fillInventory(inventory, world.rand, ctx);
DimDoors.log.info("Inventory should be populated now. Chest is: " + (inventory.isEmpty() ? "emtpy." : "filled."));
DimDoors.log.debug("Inventory should be populated now. Chest is: " + (inventory.isEmpty() ? "emtpy." : "filled."));
if (inventory.isEmpty()) {
DimDoors.log.error(", however Inventory is: emtpy!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
@Saved public UUID id = UUID.randomUUID(); // Used to create pointers to registry vertices. Should not be used for anything other than saving.

public void sourceGone(RegistryVertex source) {
DimDoors.log.info("Notified vertex " + this + " that source " + source + " is gone");
DimDoors.log.debug("Notified vertex " + this + " that source " + source + " is gone");
RiftRegistry.instance().markSubregistryDirty(dim);
}

public void targetGone(RegistryVertex target) {
DimDoors.log.info("Notified vertex " + this + " that target " + target + " is gone");
DimDoors.log.debug("Notified vertex " + this + " that target " + target + " is gone");
RiftRegistry.instance().markSubregistryDirty(dim);
}

public void sourceAdded(RegistryVertex source) {
DimDoors.log.info("Notified vertex " + this + " that source " + source + " was added");
DimDoors.log.debug("Notified vertex " + this + " that source " + source + " was added");
RiftRegistry.instance().markSubregistryDirty(dim);
}

public void targetAdded(RegistryVertex target) {
DimDoors.log.info("Notified vertex " + this + " that target " + target + " was added");
DimDoors.log.debug("Notified vertex " + this + " that target " + target + " was added");
RiftRegistry.instance().markSubregistryDirty(dim);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void targetGone(RegistryVertex target) {
}

public void targetChanged(RegistryVertex target) {
DimDoors.log.info("Rift " + this + " notified of target " + target + " having changed. Updating color.");
DimDoors.log.debug("Rift " + this + " notified of target " + target + " having changed. Updating color.");
((TileEntityRift) location.getTileEntity()).updateColor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public Rift getRift(Location location) {
private Rift getRiftOrPlaceholder(Location location) {
Rift rift = locationMap.get(location);
if (rift == null) {
DimDoors.log.info("Creating a rift placeholder at " + location);
DimDoors.log.debug("Creating a rift placeholder at " + location);
rift = new RiftPlaceholder();
rift.dim = location.getDim();
rift.location = location;
Expand All @@ -263,7 +263,7 @@ private Rift getRiftOrPlaceholder(Location location) {
}

public void addRift(Location location) {
DimDoors.log.info("Adding rift at " + location);
DimDoors.log.debug("Adding rift at " + location);
RegistryVertex currentRift = locationMap.get(location);
Rift rift;
if (currentRift instanceof RiftPlaceholder) {
Expand All @@ -285,7 +285,7 @@ public void addRift(Location location) {
}

public void removeRift(Location location) {
DimDoors.log.info("Removing rift at " + location);
DimDoors.log.debug("Removing rift at " + location);

Rift rift = getRift(location);

Expand Down Expand Up @@ -329,7 +329,7 @@ private void removeEdge(RegistryVertex from, RegistryVertex to) {
}

public void addLink(Location locationFrom, Location locationTo) {
DimDoors.log.info("Adding link " + locationFrom + " -> " + locationTo);
DimDoors.log.debug("Adding link " + locationFrom + " -> " + locationTo);

Rift from = getRiftOrPlaceholder(locationFrom);
Rift to = getRiftOrPlaceholder(locationTo);
Expand All @@ -344,7 +344,7 @@ public void addLink(Location locationFrom, Location locationTo) {
}

public void removeLink(Location locationFrom, Location locationTo) {
DimDoors.log.info("Removing link " + locationFrom + " -> " + locationTo);
DimDoors.log.debug("Removing link " + locationFrom + " -> " + locationTo);

Rift from = getRift(locationFrom);
Rift to = getRift(locationTo);
Expand All @@ -357,7 +357,7 @@ public void removeLink(Location locationFrom, Location locationTo) {
}

public void setProperties(Location location, LinkProperties properties) {
DimDoors.log.info("Setting DungeonLinkProperties for rift at " + location + " to " + properties);
DimDoors.log.debug("Setting DungeonLinkProperties for rift at " + location + " to " + properties);
Rift rift = getRift(location);
rift.properties = properties;
rift.markDirty();
Expand All @@ -381,7 +381,7 @@ public Location getPocketEntrance(Pocket pocket) {
}

public void addPocketEntrance(Pocket pocket, Location location) {
DimDoors.log.info("Adding pocket entrance for pocket " + pocket.getId() + " in dimension " + pocket.getDim() + " at " + location);
DimDoors.log.debug("Adding pocket entrance for pocket " + pocket.getId() + " in dimension " + pocket.getDim() + " at " + location);
PocketEntrancePointer pointer = pocketEntranceMap.get(pocket);
if (pointer == null) {
pointer = new PocketEntrancePointer(pocket.getDim(), pocket.getId());
Expand Down Expand Up @@ -421,7 +421,7 @@ private void setPlayerRiftPointer(UUID playerUUID, Location rift, Map<UUID, Play
}

public void setLastPrivatePocketEntrance(UUID playerUUID, Location rift) {
DimDoors.log.info("Setting last used private pocket entrance for " + playerUUID + " at " + rift);
DimDoors.log.debug("Setting last used private pocket entrance for " + playerUUID + " at " + rift);
setPlayerRiftPointer(playerUUID, rift, lastPrivatePocketEntrances);
}

Expand All @@ -432,7 +432,7 @@ public Location getPrivatePocketExit(UUID playerUUID) {
}

public void setLastPrivatePocketExit(UUID playerUUID, Location rift) {
DimDoors.log.info("Setting last used private pocket exit for " + playerUUID + " at " + rift);
DimDoors.log.debug("Setting last used private pocket exit for " + playerUUID + " at " + rift);
setPlayerRiftPointer(playerUUID, rift, lastPrivatePocketExits);
}

Expand All @@ -443,7 +443,7 @@ public Location getOverworldRift(UUID playerUUID) {
}

public void setOverworldRift(UUID playerUUID, Location rift) {
DimDoors.log.info("Setting last used overworld rift for " + playerUUID + " at " + rift);
DimDoors.log.debug("Setting last used overworld rift for " + playerUUID + " at " + rift);
setPlayerRiftPointer(playerUUID, rift, overworldRifts);
}

Expand Down

0 comments on commit 85b66dd

Please sign in to comment.