#NEWLINE# def log_command_response( self , command , response , async ) : #NEWLINE# #INDENT# if ( not self ) : #NEWLINE# #INDENT# results = response . json ( ) #NEWLINE# self . logger . info ( 'Command <%s> output:\n%s' , command , json . dumps ( results , indent = 2 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . logger . info ( 'Asynchronous command <%s> dispatched to agent.' , command )