[logback-dev] [JIRA] Created: (LBCLASSIC-171) Exception data sometimes does not get logged when using warn(String, Throwable)

Marshall Pierce (JIRA) noreply-jira at qos.ch
Tue Dec 8 01:05:41 CET 2009


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

                 Key: LBCLASSIC-171
                 URL: http://jira.qos.ch/browse/LBCLASSIC-171
             Project: logback-classic
          Issue Type: Bug
    Affects Versions: 0.917
         Environment: Linux, sun jdk 1.6.0_07
            Reporter: Marshall Pierce
            Assignee: Logback dev list


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list