Skip to content

Commit

Permalink
updated trace() method with info()
Browse files Browse the repository at this point in the history
  • Loading branch information
mfaisalkhatri committed Oct 13, 2024
1 parent 58c14c9 commit 0f62bb4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Logger (final APIResponse response) {
}

public void logResponseDetails() {
this.log.trace ("Logging Response Details.....");
this.log.info ("Logging Response Details.....");

this.log.info ("Response Headers: \n{}", this.response.headers ());
this.log.info ("Status Code: {}", this.response.status ());
Expand All @@ -26,7 +26,7 @@ public void logResponseDetails() {
.isBlank ()) {
this.log.info ("Response Body: \n{}", prettyPrintJson (this.response.text ()));
}
this.log.trace ("End of Logs!");
this.log.info ("End of Logs!");
}

private String prettyPrintJson (final String text) {
Expand All @@ -44,6 +44,5 @@ private String prettyPrintJson (final String text) {
}
this.log.info ("No response body generated!");
return null;

}
}

0 comments on commit 0f62bb4

Please sign in to comment.