Django does support email log handlers.
But this way, if some error is repeated often, we risk to be mail-bombed by ERROR emails.
How to send us emails on errors but not too often?
Any other solutions?
Use a BufferingSMTPHandler
as described in this Gist . You can adapt the described class to your needs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.