Use logger for JSON exception
This commit is contained in:
parent
7f1cfd2db7
commit
68e0a899b8
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user