forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -5,6 +5,7 @@
|
|||||||
# See LICENSE
|
# See LICENSE
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
import datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from flask import current_app, g
|
from flask import current_app, g
|
||||||
@ -83,9 +84,12 @@ Adresses d'origine:
|
|||||||
\n\n"""
|
\n\n"""
|
||||||
+ msg.body
|
+ msg.body
|
||||||
)
|
)
|
||||||
|
now = datetime.datetime.now()
|
||||||
|
formatted_time = now.strftime("%Y-%m-%d %H:%M:%S") + ".{:03d}".format(
|
||||||
|
now.microsecond // 1000
|
||||||
|
)
|
||||||
current_app.logger.info(
|
current_app.logger.info(
|
||||||
f"""email sent to{
|
f"""[{formatted_time}] email sent to{
|
||||||
' (mode test)' if email_test_mode_address else ''
|
' (mode test)' if email_test_mode_address else ''
|
||||||
}: {msg.recipients}
|
}: {msg.recipients}
|
||||||
from sender {msg.sender}
|
from sender {msg.sender}
|
||||||
|
Loading…
Reference in New Issue
Block a user