Log the full stack trace when an HTTP request fails (#6022)

This commit is contained in:
Jihoon Son 2018-07-19 12:05:46 -07:00 committed by Gian Merlino
parent cd8ea3da8d
commit 4a2df2b23a
1 changed files with 1 additions and 2 deletions

View File

@ -159,8 +159,7 @@ public class DruidLeaderClient
} }
catch (IOException | ChannelException ex) { catch (IOException | ChannelException ex) {
// can happen if the node is stopped. // can happen if the node is stopped.
log.info("Request[%s] failed with msg [%s].", request.getUrl(), ex.getMessage()); log.warn(ex, "Request[%s] failed.", request.getUrl());
log.debug(ex, "Request[%s] failed.", request.getUrl());
try { try {
if (request.getUrl().getQuery() == null) { if (request.getUrl().getQuery() == null) {