AdminEmailHandler is synchronous.
|Reported by:||tdhutt@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Hi set up my logging settings to email me in certain situations (e.g. aliens visiting my site) by doing logger.warn("Visitor from space") in a middleware class, and then setting a logger for that middleware class to use AdminEmailHandler. However it is useless, because AdminEmailHandler is synchronous! Any aliens have to wait two or three seconds for the email to be sent before seeing my site!
It would be much much better if the email was asynchronous, or at least there was an additional AsyncAdminEmailHandler which was used by default.
Change History (6)
comment:1 Changed 4 years ago by tdhutt@…
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 4 years ago by claudep
- Component changed from Core (Other) to Core (Mail)
- Easy pickings unset
- Triage Stage changed from Unreviewed to Accepted
- Type changed from Uncategorized to New feature