diff --git a/app/controllers/IncomingDataController.java b/app/controllers/IncomingDataController.java index f717284..9bf9200 100644 --- a/app/controllers/IncomingDataController.java +++ b/app/controllers/IncomingDataController.java @@ -75,8 +75,10 @@ public CompletionStage index() { case Event.PLUGIN_INSTALL: log.debug("Installation event received"); return complete(executeInstallationEvents(event, json, messages)); + case Event.PLUGIN_UNINSTALL: + log.warn("Ignoring event {}.", event); default: - log.warn("Ignoring event {}."); + log.warn("Ignoring event {}.", event); return complete(badRequest(ErrorUtil.toJson(BAD_REQUEST, messages.at(MessageKey.NOT_SUBSCRIBED)))); } } else { @@ -132,7 +134,7 @@ private Result executeInstallationEvents(String event, JsonNode json, Messages m return updateHelper.updateConfiguration(data, messages); } } catch (Exception e) { - log.debug("Missing or invalid data object.", e); + log.error("Missing or invalid data object.", e); Map errorMessages = new HashMap<>(); errorMessages.put("payload.data", messages.at(MessageKey.MISSING_PAYLOAD_DATA)); return badRequest(ErrorUtil.toJson(BAD_REQUEST, messages.at(MessageKey.INVALID_JSON), errorMessages)); diff --git a/conf/logback-prod.xml b/conf/logback-prod.xml index ecffcd2..7fbab72 100644 --- a/conf/logback-prod.xml +++ b/conf/logback-prod.xml @@ -2,9 +2,9 @@ - - - + + +