Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2598

Exception handling - Never log and handle an exception, do one or the other

    Details

      Description

      Either I see my exception in the log (because it is one of the VERY
      RARE silently recoverable exceptions - I would not know a single one)
      or it is handled by my exception handler. Actually, I should never see
      an exception in my log unless I say so in my exception handler. I've
      seen Shane doing some commits about this but he only made logging
      configurable in Exceptions.handle(), which runs AFTER
      SeamPhaseListener already dumps a log.error("Uncaught exception", e).
      So basically, you can now configure if you want an exception logged
      twice or just once. This is btw killing me in production because my
      log fills up with login-password failures if someone makes a typo.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  shane.bryzak Shane Bryzak
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated: