Recently I’ve created a python script to retrieve data out from a log file and write into a mysql database. This script is suppose to be running 24 hours, but it crashes unexpectedly and I have no clue as to why.
How can I go about accessing the crash report?
My software specifications are.
- python version: 2.5.4
- MySQL-python-1.2.3c1
Assuming that a fatal internal error is not causing your issue you could register an
atexitfunction to get some more information about the time and issue:If a fatal error or system event is causing the crash you may need to check your OS’s help documentation to find other ways to trace the issue (the Event Viewer on Windows,
/var/logson Linux [although I’m sure there is a better way] and Console for Mac [as far as I understand it]).