File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import org .osgl .$ ;
99import org .osgl .concurrent .ContextLocal ;
1010import org .osgl .http .H ;
11+ import org .osgl .logging .LogManager ;
12+ import org .osgl .logging .Logger ;
1113import org .osgl .storage .ISObject ;
1214import org .osgl .storage .impl .SObject ;
1315import org .osgl .util .C ;
2325
2426public class MailerContext extends ActContext .Base <MailerContext > {
2527
28+ private static final Logger logger = LogManager .get (MailerContext .class );
29+
2630 private H .Format fmt = H .Format .HTML ;
2731 private InternetAddress from ;
2832 private String subject ;
@@ -249,6 +253,9 @@ public boolean send() {
249253 try {
250254 MimeMessage message = createMessage ();
251255 if (!mailerConfig ().mock ()) {
256+ if (logger .isDebugEnabled ()) {
257+ logger .debug ("Sending email\n %sEnd email\n " , debug (message ));
258+ }
252259 Transport .send (message );
253260 } else {
254261 logger .info ("Sending email\n %sEnd email\n " , debug (message ));
You can’t perform that action at this time.
0 commit comments