Skip to content

Commit 4674772

Browse files
author
Nakul Sabharwal
committed
Logging the UnsupportedEncodingException exception
1 parent 705ef38 commit 4674772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/http/DefaultHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private <Result> Result handleEmptyResponse(Map<String, List<String>> responseHe
414414
in = new ByteArrayInputStream("{}".getBytes(ENCODING_TYPE));
415415
}
416416
catch(UnsupportedEncodingException ex) {
417-
ex.printStackTrace();
417+
logger.logError(ex.getMessage(), ex);
418418
}
419419

420420
return handleJsonResponse(in, responseHeaders, clazz);

0 commit comments

Comments
 (0)