Skip to content

Commit

Permalink
loggers added
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-b-7 committed Jan 5, 2021
1 parent 341a3f2 commit 4e2b004
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,15 @@ class OpsmxAutopilotController {
metric,account,metricType,isBoxplotData,metricname,numofver,serviceName,platform,ruleId,zone,appType,metricTemplate,logTemplate,riskanalysis_id,service_id,
userId,logTemplateName,forceDelete,deleteAssociateRuns, event, serviceList, pipelineId, referer)


log.info("******************************* Response content type ************************************ : {}", response.contentType().type())
if (response.contentType().type().equalsIgnoreCase("application/zip")){
log.info("***************************** Inside if condition *******************************")
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Type", response.contentType().type())
return ResponseEntity.ok().headers(headers).body(response.bytes())
} else {
log.info("***************************** Inside else condition *******************************")
return response.string()
}
}
Expand Down

0 comments on commit 4e2b004

Please sign in to comment.