Use logger for JSON exception

This commit is contained in:
Antonin Delpeuch 2018-03-05 18:30:46 +00:00
parent 7f1cfd2db7
commit 68e0a899b8

View File

@ -64,7 +64,7 @@ public class LoginCommand extends Command {
writer.value(manager.getUsername());
writer.endObject();
} catch (JSONException e) {
e.printStackTrace();
logger.error(e.getMessage());
}
respond(response, sb.toString());
}