There are a lot of exception I don't want to catch, I want them to stop processing, but, I still want the stack trace in the log file. Is there a way to setup a logger so that it automatically logs all exceptions?
Right now I am writing things like this a lot:
try:
blah
except:
logging.exception('doing blah')
raise
which take up a lot of time and space + it'll only log the exceptions for which I have a try clause for, not the other ones.
Thanks.