def __init__(self, config): KarapaceBase.__init__(self, config) KafkaRest._init(self, config) KafkaRest._add_routes(self) KarapaceSchemaRegistry._init(self) KarapaceSchemaRegistry._add_routes(self) self.log = logging.getLogger("KarapaceAll") self.app.on_shutdown.append(self.close_by_app)
def __init__(self, config_file_path: str, config: dict) -> None: KarapaceBase.__init__(self, config_file_path=config_file_path, config=config) KafkaRest._init(self, config=config) KafkaRest._add_routes(self) KarapaceSchemaRegistry._init(self, config=config) KarapaceSchemaRegistry._add_routes(self) self.log = logging.getLogger("KarapaceAll") self.app.on_shutdown.append(self.close_by_app)