Skip to content

Commit 7718613

Browse files
committed
Update logging code
1 parent 1c87391 commit 7718613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/ringcentral/RestClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ public ResponseBody request(HttpMethod httpMethod, String endpoint, Object query
334334
requestBody) throws IOException, RestException {
335335
try {
336336
Response response = requestRaw(httpMethod, endpoint, queryParameters, requestBody);
337-
logger.fine(String.format("[HTTP %s %s] %s %s", httpMethod.toString(), response.code(), this.server, endpoint));
337+
logger.fine(String.format("[HTTP %s %s] %s, rc-request-id: %s", httpMethod.toString(), response.code(), endpoint, response.header("rcrequestid")));
338338
return response.peekBody(Long.MAX_VALUE);
339339
} catch (RestException re) {
340340
Response response = re.response;
341-
logger.fine(String.format("[HTTP %s %s] %s %s", httpMethod.toString(), response.code(), this.server, endpoint));
341+
logger.warning(String.format("[HTTP %s %s] %s, rc-request-id: %s", httpMethod.toString(), response.code(), endpoint, response.header("rcrequestid")));
342342
throw re;
343343
}
344344
}

0 commit comments

Comments
 (0)