From 68e0a899b845d358314135eefd21a514cc3a60e5 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Mon, 5 Mar 2018 18:30:46 +0000 Subject: [PATCH] Use logger for JSON exception --- .../src/org/openrefine/wikidata/commands/LoginCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/wikidata/src/org/openrefine/wikidata/commands/LoginCommand.java b/extensions/wikidata/src/org/openrefine/wikidata/commands/LoginCommand.java index feb2fcf4b..951741ddf 100644 --- a/extensions/wikidata/src/org/openrefine/wikidata/commands/LoginCommand.java +++ b/extensions/wikidata/src/org/openrefine/wikidata/commands/LoginCommand.java @@ -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()); }