Rest Client: wrap log statement in logger.isDebugEnabled
This commit is contained in:
parent
02c98b11ab
commit
c63719d085
|
@ -82,7 +82,9 @@ final class RequestLogger {
|
|||
* Logs a request that failed
|
||||
*/
|
||||
static void logFailedRequest(Log logger, HttpUriRequest request, HttpHost host, IOException e) {
|
||||
logger.debug("request [" + request.getMethod() + " " + host + getUri(request.getRequestLine()) + "] failed", e);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("request [" + request.getMethod() + " " + host + getUri(request.getRequestLine()) + "] failed", e);
|
||||
}
|
||||
if (logger.isTraceEnabled()) {
|
||||
String traceRequest;
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue