#NEWLINE# def process( self , msg , kwargs ) : #NEWLINE# #INDENT# path = method = remote_addr = user_agent = url = '' #NEWLINE# ctx = _request_ctx_stack . top #NEWLINE# if ( method is not None ) : #NEWLINE# #INDENT# path = ctx . request . path #NEWLINE# url = ctx . request . url #NEWLINE# method = ctx . request . method #NEWLINE# remote_addr = ctx . request . remote_addr #NEWLINE# user_agent = ctx . request . headers . get ( 'user-agent' , '' ) #NEWLINE# #UNINDENT# kwargs [ 'extra' ] = dict ( http_path = path , http_url = url , http_method = method , http_remote_addr = remote_addr , http_user_agent = user_agent ) #NEWLINE# for handler in self . extra_handlers : #NEWLINE# #INDENT# handler ( kwargs [ 'extra' ] , ctx ) #NEWLINE# #UNINDENT# return ( msg , kwargs )