From dd497fdcb199f41d951389da7c2990cb42939a04 Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 9 Jul 2014 23:08:17 -0700 Subject: [PATCH] Send WrappedCommandException to the logger. --- .../com/sk89q/worldedit/extension/platform/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java b/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java index f08714d61..49b21d797 100644 --- a/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java +++ b/src/main/java/com/sk89q/worldedit/extension/platform/CommandManager.java @@ -241,7 +241,7 @@ public final class CommandManager { Throwable t = e.getCause(); actor.printError("Please report this error: [See console]"); actor.printRaw(t.getClass().getName() + ": " + t.getMessage()); - t.printStackTrace(); + logger.log(Level.SEVERE, "An unexpected error while handling a WorldEdit command", t); } catch (CommandException e) { String message = e.getMessage(); if (message != null) {