Fix some logging calls which included `exc_info` on the wrong function.
Merge pull request #4363 from s0undt3ch/develop

Fix some logging calls which included `exc_info` on the wrong function.