Open barakman opened 10 months ago
Uncaught exceptions are logged as Error in main loop with little to no information pointing to the source of the problem.
Error in main loop
This, in turn, leads to a lot of time and effort being spent on investigating every such exception.
It can be addressed by catching these exceptions at "the main loop", and then logging the entire stack trace.
There are two simple ways for doing this:
sys
sys.exc_info()[2]
traceback
traceback.format_exc()
Handled in https://github.com/bancorprotocol/fastlane-bot/pull/318
Uncaught exceptions are logged as
Error in main loop
with little to no information pointing to the source of the problem.This, in turn, leads to a lot of time and effort being spent on investigating every such exception.
It can be addressed by catching these exceptions at "the main loop", and then logging the entire stack trace.
There are two simple ways for doing this:
sys
and then usingsys.exc_info()[2]
traceback
and then usingtraceback.format_exc()