Skip to content

Commit

Permalink
#280 - Provide useful error message when fhir server is unreachable
Browse files Browse the repository at this point in the history
- add the error message to the dispatch failed message in the error log
  • Loading branch information
michael-82 committed Apr 16, 2024
1 parent 9d9bb31 commit f5c10ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ private Mono<Boolean> dispatchAsynchronously(Dispatchable dispatchable, BrokerCl
brokerQueryId, broker.getBrokerType()));
return true;
} catch (UnsupportedMediaTypeException | QueryNotFoundException | IOException e) {
log.error("failed to dispatch query '%s' with broker type '%s'"
.formatted(dispatchable.query.getId(), broker.getBrokerType()));
log.error("failed to dispatch query '%s' with broker type '%s': %s"
.formatted(dispatchable.query.getId(), broker.getBrokerType(), e.getMessage()));
return false;
}
});
Expand Down

0 comments on commit f5c10ff

Please sign in to comment.