#NEWLINE# def _app( args , log ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# config_builder = PulsarConfigBuilder ( args ) #NEWLINE# pulsar_app = load_pulsar_app ( config_builder , config_env = True , log = log ) #NEWLINE# #UNINDENT# except BaseException : #NEWLINE# #INDENT# log . exception ( 'Failed to initialize Pulsar application' ) #NEWLINE# raise #NEWLINE# #UNINDENT# return pulsar_app