Reputation: 20419
Of course, I can use try
and on except
send email notification about error happened. But is there any better (more universal) approach? Any time exception happens (for ex., with minimum severity ERROR
) - email to be sent?
Is there any ready solution or will I have to get logs and parse them for ex. each 5 minutes to generate notification?
Upvotes: 1
Views: 222
Reputation: 12986
Have a look at ereporter - https://developers.google.com/appengine/articles/python/recording_exceptions_with_ereporter, you can then configure a cron job to send email reports.
Upvotes: 5