Use pyqode.core.logger.exception for logging exceptions