3
0
Fork 0

fix: log warning when sending email is requested but disabled

This commit is contained in:
Lance Edgar 2025-09-20 12:38:43 -05:00
parent 80b50f05da
commit 9bbd92d683

View file

@ -725,7 +725,7 @@ class EmailHandler(GenericHandler): # pylint: disable=too-many-public-methods
# make sure sending is enabled
log.debug("sending email from %s; to %s", sender, recips)
if not self.sending_is_enabled():
log.debug("nevermind, config says no emails")
log.warning("email sending is disabled")
return
# smtp connect