Catch and send errors via Email

30 views
Skip to first unread message

chriii...@gmail.com

unread,
Feb 19, 2026, 10:10:41 AM (12 days ago) Feb 19
to py4web
Hello, I would like to know if there is a way to send py4web errors via email or similar?
Sometimes in production apps unexpected error happens and would be convenient to know them in time via email.


Greetings!

Dave S

unread,
Feb 19, 2026, 3:59:53 PM (12 days ago) Feb 19
to py4web
I don't know about the py4web error handlers [1], but in web2py the errors are text files in a designated directory, and a background process could certainly be watching the directory for new entries.  Consider using the scheduler.

[1] I have homework to do.

/dps

Massimo DiPierro

unread,
Feb 21, 2026, 5:34:45 PM (10 days ago) Feb 21
to py4web
This was discussed in the case of web2py. My opinion is sending emails should bot be performed synchronously by an action because it may be a blocking operation. Also it may lead to excessive spam.
I think the right approach is to have a background scheduler task that sends en email when there are newly created tickets. It should also do some throttling and combine tickets of the same kind.
There would be an app with a UI to register emails, subscribe to errors (per app), and throttling parameters.
Any volunteers?

Massimo

Christian Varas

unread,
Feb 21, 2026, 5:46:44 PM (10 days ago) Feb 21
to Massimo DiPierro, py4web
I can make this feature, I have it in mind for while. 
I was thinking in just a script that can read tickets listed in dashboard app and send them via email. I haven’t investigated if tickets are in a db or in a file but i will. I haven’t used scheduler, I always use celery for async tasks. Anyway, I can work on this.

greetings 

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/2dae715a-9d24-4f42-9208-ebe491b7383an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages