jojochuang commented on a change in pull request #2515:
URL: https://github.com/apache/hadoop/pull/2515#discussion_r535514879
##########
File path:
hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSExceptionProvider.java
##########
@@ -95,4 +99,9 @@ protected void log(Response.Status status, Throwable
throwable) {
LOG.warn("[{}:{}] response [{}] {}", method, path, status, message,
throwable);
}
+ private void logErrorFully(Response.Status status, Throwable throwable) {
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Failed with " + status, throwable);
Review comment:
Let's use parameterized logging, shall we?
That way, you don't need to check if debug log is enabled.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]