Skip to content

Commit

Permalink
fix(mail): do not fail to deploy when debugging is not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Mar 26, 2024
1 parent d8198b5 commit 2a73426
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MailSessionProducer {
private static final Logger logger = Logger.getLogger(MailSessionProducer.class.getCanonicalName());

static {
if (Boolean.TRUE.equals(JvmSettings.MAIL_DEBUG.lookup(Boolean.class))) {
if (Boolean.TRUE.equals(JvmSettings.MAIL_DEBUG.lookupOptional(Boolean.class).orElse(false))) {
logger.setLevel(Level.FINE);
}
}
Expand Down

0 comments on commit 2a73426

Please sign in to comment.