#NEWLINE# def handle_noargs( self , **options ) : #NEWLINE# #INDENT# if ( options [ 'cron' ] == 0 ) : #NEWLINE# #INDENT# logging . basicConfig ( level = logging . DEBUG , format = '%(message)s' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . basicConfig ( level = logging . ERROR , format = '%(message)s' ) #NEWLINE# #UNINDENT# count = Message . objects . retry_deferred ( ) #NEWLINE# logging . info ( ( '%s message(s) retried' % count ) ) #NEWLINE# connection . close ( )