fixing dblogger to properly handle exc_info