Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4123

HDFS logs should print stack trace and add a comment where it is intentionally not printed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Review the code and change the logs to print stack trace by changing the code from:

        LOG.info("message" + exception)
      

      to:

        LOG.info("message", exception)
      

      Where printing exception stack trace is avoided, add a comment to indicate that intent, to avoid someone changing it to print full stack trace.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sureshms Suresh Srinivas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: