Skip to content

Commit

Permalink
reverted logger changes because of #9241
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic74 committed Dec 5, 2020
1 parent 137027c commit 9815885
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1200,18 +1200,18 @@ public void smartHomeCommand(String entityId, String action, @Nullable String pr
if (errors != null && errors.isJsonArray()) {
JsonArray errorList = errors.getAsJsonArray();
if (errorList.size() > 0) {
logger.warn("Smart home device command failed.");
logger.warn("Request:");
logger.warn("{}", requestBody);
logger.warn("Answer:");
logger.info("Smart home device command failed.");
logger.info("Request:");
logger.info("{}", requestBody);
logger.info("Answer:");
for (JsonElement error : errorList) {
logger.warn("{}", error.toString());
logger.info("{}", error.toString());
}
}
}
}
} catch (URISyntaxException e) {
logger.warn("Wrong url {}", url, e);
logger.info("Wrong url {}", url, e);
}
}

Expand Down

0 comments on commit 9815885

Please sign in to comment.