use logging.exception instead of logging.error to capture stacktrace`
Merge pull request #9 from dimagi/log-exception

use logging.exception instead of logging.error to capture stacktrace