HDFS-3575. HttpFS does not log Exception Stacktraces (brocknoland via tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1356330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-07-02 16:41:33 +00:00
parent 28e8151ad3
commit 2b2344a57e
2 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ protected void log(Response.Status status, Throwable throwable) {
String path = MDC.get("path");
String message = getOneLineMessage(throwable);
AUDIT_LOG.warn("FAILED [{}:{}] response [{}] {}", new Object[]{method, path, status, message});
LOG.warn("[{}:{}] response [{}] {}", new Object[]{method, path, status, message, throwable});
LOG.warn("[{}:{}] response [{}] {}", new Object[]{method, path, status, message}, throwable);
}
}

View File

@ -388,6 +388,8 @@ Branch-2 ( Unreleased changes )
block in a namenode and the reported block from a datanode do not match.
(Ashish Singhi via szetszwo)
HDFS-3575. HttpFS does not log Exception Stacktraces (brocknoland via tucu)
BREAKDOWN OF HDFS-3042 SUBTASKS
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)