def get_info(self): """ Informations about the current deployment and state and generates a log entry on the netman.api logger \ that says : ``/info requested this is a logging test`` :code 200 OK: Example output: .. literalinclude:: ../../../tests/api/fixtures/get_info.json :language: json """ logging.getLogger("netman.api").info("/info requested this is a logging test") return 200, info.to_api( status='running', version=self.get_distribution('netman').version )
def get_info(self): """ Informations about the current deployment and state and generates a log entry on the netman.api logger \ that says : ``/info requested this is a logging test`` :code 200 OK: Example output: .. literalinclude:: ../doc_config/api_samples/get_info.json :language: json """ logging.getLogger("netman.api").info( "/info requested this is a logging test") return 200, info.to_api( status='running', version=self.get_distribution('netman').version, lock_provider=_class_fqdn(self.switch_factory.lock_factory))
def get_info(self): """ Informations about the current deployment and state and generates a log entry on the netman.api logger \ that says : ``/info requested this is a logging test`` :code 200 OK: Example output: .. literalinclude:: ../doc_config/api_samples/get_info.json :language: json """ logging.getLogger("netman.api").info("/info requested this is a logging test") return 200, info.to_api( status='running', version=self.get_distribution('netman').version, lock_provider=_class_fqdn(self.switch_factory.lock_factory) )