Skip to content

Commit

Permalink
1.1.4: added urls to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiratkaya committed Jul 24, 2024
1 parent 5911c09 commit 43f2954
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/src/main/java/net/leaderos/shared/model/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ public Request(String api, Map<String, String> body, @NotNull RequestType type)
JSONObject obj = getResponseObj(responseString);
this.response = new Response(responseCode, status, obj, obj.has("error") ? obj.getEnum(Error.class, "error") : null);

Shared.getDebugAPI().send("Response Code: " + responseCode, false);
Shared.getDebugAPI().send("URL: " + this.url, false);
Shared.getDebugAPI().send(this.response.getResponseMessage().toString(), false);
} catch (Exception e) {
Shared.getDebugAPI().send("URL: " + this.url, false);
Shared.getDebugAPI().send(e.getMessage(), true);
Shared.getDebugAPI().send(responseString, true);
}
Expand Down

0 comments on commit 43f2954

Please sign in to comment.