Skip to content

Commit

Permalink
#550 Unified logging of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Dec 13, 2024
1 parent 25335ab commit 4121214
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static SysValue publish(String mcrid) {
Response response = client.post(conf.getPath(), json)) {

if (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {
LOGGER.error("HISinOne api error: {}", response.readEntity(String.class));
LOGGER.error("{}: {}", conf.getPath(), response.readEntity(String.class));
return SysValue.ErroneousSysValue;
}

Expand Down Expand Up @@ -97,7 +97,7 @@ public static SysValue update(String mcrid) {
Response response = client.put(conf.getPath() + "/" + hisId, json)) {

if (response.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) {
LOGGER.error("HISinOne api error: {}", response.readEntity(String.class));
LOGGER.error("{}: {}", conf.getPath(), response.readEntity(String.class));
return SysValue.ErroneousSysValue;
}

Expand Down

0 comments on commit 4121214

Please sign in to comment.