#NEWLINE# def logging_request_exc( request ) : #NEWLINE# #INDENT# logger = logging . getLogger ( __name__ ) #NEWLINE# try : #NEWLINE# #INDENT# raise Exception ( request . GET . get ( 'message' , 'view exception' ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logger . error ( request , exc_info = True , extra = { #NEWLINE# #INDENT# 'request' : request , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return HttpResponse ( '' )