Merge pull request #15550 from jumpserver/pr@dev@send_mail_async

perf: send_mail_async func log subject recipients info
pull/15554/head
ZhaoJiSen 2025-06-11 11:17:25 +08:00 committed by GitHub
commit b3bfbf5046
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -57,12 +57,9 @@ def send_mail_async(*args, **kwargs):
args = tuple(args)
subject = args[0] if len(args) > 0 else kwargs.get('subject')
message = args[1] if len(args) > 1 else kwargs.get('message')
recipient_list = args[3] if len(args) > 3 else kwargs.get('recipient_list')
html_message = kwargs.get('html_message')
logger.info(
"send_mail_async called with subject=%r, message=%r, recipients=%r, html_message=%r",
subject, message, recipient_list, html_message
"send_mail_async called with subject=%r, recipients=%r", subject, recipient_list
)
try: