[logback-dev] Caught exception not being reported at SMTPAppenderBase.lookupSessionInJNDI()
Fabio Cechinel Veronez
fabio.veronez at gmail.com
Mon Sep 30 16:14:02 CEST 2013
This is my first msg to this email list so, i'm sorry if i'm doing
something wrong.
Well, at ch.qos.logback.core.net.SMTPAppenderBase.lookupSessionInJNDI()
method(
https://github.com/qos-ch/logback/blob/v_1.0.13/logback-core/src/main/java/ch/qos/logback/core/net/SMTPAppenderBase.java#L156
),
is there a reason why caught exception instance is not being used
at addError error method call?
Currently I'm having problems retrieving jndi instance and I have no idea
why, this is what is print at my console:
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]
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]
10:28:21,115 |-ERROR in ch.qos.logback.classic.net.SMTPAppender[EMAIL] -
Failed to obtain javax.mail.Session. Cannot start.
Wouldn't be better to add exception instance to ErrorStatus?
Thanks in advance.
--
Fabio Cechinel Veronez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20130930/89f0c178/attachment.html>
More information about the logback-dev
mailing list