Skip to content

Commit

Permalink
fixed application log check
Browse files Browse the repository at this point in the history
  • Loading branch information
charliemaiors committed Mar 17, 2016
1 parent ead8bd7 commit 4bb590e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public String getPodLogs(String kubernetesBaseURL, String namespace, String appN
logEntity = template.exchange(targetUrl, HttpMethod.GET, requestEntity, String.class);
} catch (HttpClientErrorException e ){
return "No log available for the application " + appName;
} catch (HttpServerErrorException e){
return "Pod(s) crashed for too long time, log not anymore available";
}

if(!logEntity.getStatusCode().is2xxSuccessful()) logger.debug("FAILED TO RETRIEVE LOGS " + logEntity.getBody());
Expand Down

0 comments on commit 4bb590e

Please sign in to comment.