Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

management: Run log_email_config_errors in send_test_email command.

Mateusz Manderab8ba63e79265
diff --git a/zerver/management/commands/send_test_email.py b/zerver/management/commands/send_test_email.py
index 161d1ace3c2..1af737855e7 100644
--- a/zerver/management/commands/send_test_email.py
+++ b/zerver/management/commands/send_test_email.py
@@ -8,7 +8,7 @@ from django.core.mail import mail_admins, mail_managers, send_mail
from django.core.management import CommandError
from django.core.management.commands import sendtestemail
-from zerver.lib.send_email import FromAddress
+from zerver.lib.send_email import FromAddress, log_email_config_errors
class Command(sendtestemail.Command):
@@ -18,6 +18,9 @@ class Command(sendtestemail.Command):
"Outgoing email not yet configured, see\n "
"https://zulip.readthedocs.io/en/latest/production/email.html"
)
+
+ log_email_config_errors()
+
if len(kwargs["email"]) == 0:
raise CommandError(
"Usage: /home/zulip/deployments/current/manage.py "