Hi Presumably you have had a look at logging docs and its not good enough? https://docs.djangoproject.com/en/1.10/topics/logging/
With these sort of project requirements the way i have solved this in the past is to: *Work out who needs to receive certain messages. Draw a grid with all useful messages on one axis and all admins of various types on the other. Tick the grid boxes for who receives what. *write a model to save 'messages' with timestamps level/seriousness of critical errors. Basically whatever you think is important. *use decorators in views to write/save messages to the 'message' model. (herein you an add logic to remove duplicates, cascade critical errors straight into sending to admin email accounts as methods within the model class whatever your approach might be) Run an email queue every 24 hours that sends aggregated message groups relevant to each admin. https://docs.djangoproject.com/en/dev/topics/http/decorators/ Implement this for the most common and annoying duplicate messages to start with. Always have an admin of some sort that gets all the critical error messages eg: say 500 'server error' type messages. Hope this provides some insight. On Mon, Jan 9, 2017 at 8:53 AM, Nacharov Mikhail <michael.nacha...@gmail.com > wrote: > Hi folks and Happy New Year! > > I have a high load production site. If I make a mistake (some users > getting 500 error) all ADMINS will be receiving error emails until bug > won't be fixed. > This causes email server load and it's quite annoying reading thouse > idetical emails sometimes. It's also possible to miss anouther error report > inside a bunch of identical.. > > Did somebody know how to decrease amount of identical Email reports? > <https://docs.djangoproject.com/en/1.10/howto/error-reporting/#email-reports> > Maybe set some timeout for the same message subject would be correct > decision? > > Maybe there is a better way for monitor web server events? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/2b54c365-fb9b-4618-89b5-ba88b18e6487%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/2b54c365-fb9b-4618-89b5-ba88b18e6487%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMbLS2_R1Xoz5VkeFhYeW-foKyx-WBiS85ttpzPxC6josO%3DNig%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.