Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72638

Include stack trace when logging unexpected errors

    Details

      Description

      May parts of Liferay have the following code pattern:

      try {
      }
      catch (Exception e) {
          _log.error(e);
      }
      

      While it's helpful that we have a _log.error, in many cases, it'd be much more useful if these log messages could contain the stack trace of the exception that was caught.

      This ticket aims to capture many of these and log more useful error messages.

      Note: This cannot be QA tested, as these are unexpected errors.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 11 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP18
                  7.0.0 DXP FP20
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.0.0 DXP FP37
                  7.0.0 DXP SP7
                  7.0.5 CE GA6