Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12220

There should be replaced stacktrace loggings to stderr with usage of logging.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Critical
    • None
    • 7.1.0.ER2
    • Server
    • None

    Description

      On many places both in server and in components there is called on exception printStackTrace, this results in having the stacktrace printed to stderr. This results in each line of the stacktrace to be considered a new error message in logs.

      Using stderr is
      1) is inefficient from performance point of view and
      2) it doesn't have such nice control of what and when should be printed (length of stacktrace,log level) as logging does.

      I believe occurrences of using the printStackTrace in the code should be reviewed and either removed or replaced with logging where appropriate.

      This one is reported for the server itself. If you agree that it is worth doing as I believe it is, then there should be created separate tasks for individual components.

      Attachments

        Issue Links

          Activity

            People

              rpelisse@redhat.com Romain Pelisse
              rhatlapa@redhat.com Radim Hatlapatka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: