Skip to content

Commit 41e499b

Browse files
committed
Add response debug message
1 parent 725dc75 commit 41e499b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/com/namelessmc/NamelessAPI/Request.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ public void connect() throws NamelessException {
166166
responseBuilder.append(responseString);
167167

168168
JsonParser parser = new JsonParser();
169-
169+
170+
if (NamelessAPI.DEBUG_MODE) {
171+
System.out.println(String.format("NamelessAPI > Response: %s", responseBuilder.toString()));
172+
}
173+
170174
response = parser.parse(responseBuilder.toString()).getAsJsonObject();
171175

172176
inputStream.close();

0 commit comments

Comments
 (0)