change to use log.exception instead of traceback module