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.value(manager.getUsername());
writer.endObject(); writer.endObject();
} catch (JSONException e) { } catch (JSONException e) {
e.printStackTrace(); logger.error(e.getMessage());
} }
respond(response, sb.toString()); respond(response, sb.toString());
} }