How does it work?
As I mentioned Sentry itself is just a message service. You just need to send it good data. The same paid service also release their client Raven (https://github.com/getsentry/raven-python). It has a built in exception capture system that will step through the exception and dump the locals() per frame (Really awesome for debugging!) AND it's threaded, so it should not interfere with the user interface.
I already had a logger in all my studio code and I was already using an exception hook to capture out uncaught exceptions in a log file. The Sentry system is decidedly better.
Here's a bare-bones example of how you might implement exception tracking:
import sys
try:
import raven
RAVEN_CLIENT = raven.Client('http://<key>@<server>:9000/<projectId>')
except:
RAVEN_CLIENT = None
def exceptionHandler(excType, excValue, traceback):
if RAVEN_CLIENT!=None:
RAVEN_CLIENT.captureException(exc_info=(excType, excValue, traceback))
sys.excepthook = exceptionHandler
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANESWi2ny_yAG3%2BaoEOh00jv-K7q6ANjPst%3DXwnR%3DSXeN9RVCw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.