#NEWLINE# def log( self , msg , reply = None , min_level = 2 , format_msg = True ) : #NEWLINE# #INDENT# if ( self . verbosity < min_level ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( not reply ) : #NEWLINE# #INDENT# url = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = qurl2ascii ( reply . url ( ) ) #NEWLINE# if ( not format_msg ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# if format_msg : #NEWLINE# #INDENT# msg = msg . format ( url = url ) #NEWLINE# #UNINDENT# log . msg ( msg , system = 'network-manager' )