Improved exception info logging.