Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-459

Exception data sometimes does not get logged when using warn(String, Throwable)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 0.9.17
    • None
    • None
    • Linux, sun jdk 1.6.0_07

    Description

      Source:
      try

      { doStuff(); }

      catch (PhaseException e) {
      this.logger.warn("Phase failed:", e);
      this.logger.debug("Another log message");
      ...

      Log contents:
      phase.StandardPhase - Phase failed:
      phase.StandardPhase - Another log message

      The strange thing is that this doesn't happen all the time or even most of the time. Almost always, the exception data does get logged.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            mpierce Marshall Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: