Suresh Srinivas created HDFS-4123: ------------------------------------- Summary: HDFS logs should print stack trace and add a comment where it is intentionally not printed Key: HDFS-4123 URL: https://issues.apache.org/jira/browse/HDFS-4123 Project: Hadoop HDFS Issue Type: Improvement Reporter: Suresh Srinivas Priority: Minor
Review the code and change the logs to print stack trace by changing the code from: {noformat} LOG.info("message" + exception) {noformat} to: {noformat} LOG.info("message", exception) {noformat} Where printing exception stack trace is avoided, add a comment to indicate that intent, to avoid someone changing it to print full stack trace. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira