Skip to content

Commit

Permalink
GH-5 NotFoundException: null
Browse files Browse the repository at this point in the history
adding extra logs
  • Loading branch information
lex-em committed Mar 25, 2019
1 parent 3ee9677 commit 745550a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public ObjectNode getOriginalSwaggerDoc(String route) {
try {
return restTemplate.getForObject(url, ObjectNode.class);
} catch (IllegalStateException e) {
log.error("Some unexpected error while requesting swagger docs from: {}", url);
if (e.getMessage() == null || !e.getMessage().startsWith("No instances available for")) {
throw e;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private SwaggerResource generateSwaggerDocumentationResource(String route) {
try {
swaggerVersion = swaggerService.getSwaggerVersion(route);
} catch (Exception e) {
log.error(String.format("Some error during obtain swagger documentation for route %s", route), e);
log.error(String.format("Some error during obtain swagger documentation for route '%s'", route), e);
return null;
}
SwaggerResource swaggerResource = new SwaggerResource();
Expand Down

0 comments on commit 745550a

Please sign in to comment.