Fixed AdminCommandHandler log to actually show the stacktrace.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-11-02 16:42:54 +00:00
parent 3353a4d075
commit ec736e4934
17 changed files with 34 additions and 17 deletions

View File

@ -18,6 +18,7 @@ package org.l2jmobius.gameserver.handler;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.l2jmobius.Config;
@ -129,7 +130,7 @@ public class AdminCommandHandler implements IHandler<IAdminCommandHandler, Strin
catch (RuntimeException e)
{
player.sendMessage("Exception during execution of '" + fullCommand + "': " + e.toString());
LOGGER.warning("Exception during execution of " + fullCommand + " " + e);
LOGGER.log(Level.WARNING, "Exception during execution of " + fullCommand, e);
}
finally
{