Hello!
I want to manage and catch all the error of my website using sentry
(https://getsentry.com/welcome/), reading some post in this forum i found
this:
https://groups.google.com/forum/#!searchin/web2py/disable$20tickets$20error/web2py/0E73_7KbGJI/9WEfWCpty-4J
Based in that solution i've created this inside one of my models.
from raven import Client
def mycacher(f):
client =
Client('*****************************************************************')
try:
d = f()
return d
except:
client.captureException()
response._caller = mycacher
With this i'm able to catch all the exceptions originated by a function in
the controller or by a function call inside a controller is handled with
this code, but the problems comes when a code inside the models (but
outside functions) is executed, for example, database definitions etc...
I know i can wrap all my code with a try... Except to catch this but there
is any other solution for entirely "Bypassing" the ticket system in order
to use other system?
Thanks for your help!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.