Include traceback in some debug logging. Use `exc_info` instead of formatting the exception "by hand".
Merge pull request #4359 from s0undt3ch/develop

Include traceback in some debug logging. Use `exc_info`.