Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23193

Review of Subset of Debug Logging

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Better yet, use parameterized messages

      Will outperform the first form by a factor of at least 30, in case of a disabled logging statement.

      http://www.slf4j.org/faq.html

      • Use parameterized logging where appropriate
      • Add logging guards if (Log.isDebugEnabled() around loops and complex debug message

      Simplify the code, remove lines of code, and potentially increase performance

      Attachments

        1. HIVE-23193.1.patch
          133 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: