#NEWLINE# def __logging_request( self , env ) : #NEWLINE# #INDENT# content_length = env . get ( 'CONTENT_LENGTH' , 0 ) #NEWLINE# if ( content_length == '' ) : #NEWLINE# #INDENT# content_length = 0 #NEWLINE# #UNINDENT# length = int ( content_length ) #NEWLINE# body = '' #NEWLINE# if ( length != 0 ) : #NEWLINE# #INDENT# body = env [ 'wsgi.input' ] . read ( length ) #NEWLINE# env [ 'wsgi.input' ] = StringIO ( env ) #NEWLINE# #UNINDENT# request_info = ( 'Request %s %s from %s:%s %s' % ( env [ 'REQUEST_METHOD' ] , env [ 'REQUEST_URI' ] , self . __get_remote_ip ( env ) , env [ 'REMOTE_PORT' ] , body ) ) #NEWLINE# self . api_logger . debug ( request_info )