<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">This is my first msg to this email list so, i'm sorry if i'm doing something wrong.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>Well, at ch.qos.logback.core.net.SMTPAppenderBase.lookupSessionInJNDI() method(<a href="https://github.com/qos-ch/logback/blob/v_1.0.13/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java#L156" target="_blank">https://github.com/qos-ch/logback/blob/v_1.0.13/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java#L156</a>), </div>
<div>is there a reason why caught exception instance is not being used at addError error method call? </div><div><br></div><div>Currently I'm having problems retrieving jndi instance and I have no idea why, this is what is print at my console:</div>
<div><br></div><div><div>10:28:21,114 |-INFO in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Looking up javax.mail.Session at JNDI location [java:comp/env/mail/FooBar]</div><div>10:28:21,115 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Failed to obtain javax.mail.Session from JNDI location [java:comp/env/mail/FooBar]</div>
<div>10:28:21,115 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] - Failed to obtain javax.mail.Session. Cannot start.</div><div><br></div><div>Wouldn't be better to add exception instance to ErrorStatus? </div>
<div><br></div><div>Thanks in advance.</div></div></div><div><br></div>-- <br>Fabio Cechinel Veronez
</div>