Fixed command logging regression caused by merge.

This commit is contained in:
sk89q
2014-06-27 18:28:31 -07:00
parent 1431cd2a67
commit 47076b313e
2 changed files with 18 additions and 6 deletions

View File

@ -144,9 +144,12 @@ public final class CommandManager {
// Register log
if (!logging || path.isEmpty()) {
dynamicHandler.setHandler(null);
logger.setLevel(Level.OFF);
} else {
File file = new File(config.getWorkingDirectory(), path);
logger.setLevel(Level.ALL);
logger.log(Level.INFO, "Logging WorldEdit commands to " + file.getAbsolutePath());
try {