Ticket #317: consistent-printing-server-317.patch

File consistent-printing-server-317.patch, 1.8 KB (added by thijs, 4 months ago)
  • pyamf/remoting/client/__init__.py

     
    396396        """ 
    397397        self.logger.debug('Waiting for response...') 
    398398        http_response = self.connection.getresponse() 
    399         self.logger.debug('Got response status = %s' % http_response.status) 
    400         self.logger.debug('Content-Type = %s' % http_response.getheader('Content-Type')) 
     399        self.logger.debug('Got response status: %s' % http_response.status) 
     400        self.logger.debug('Content-Type: %s' % http_response.getheader('Content-Type')) 
    401401         
    402402        if http_response.status != HTTP_OK: 
    403             self.logger.debug('Body = %s' % http_response.read()) 
     403            self.logger.debug('Body: %s' % http_response.read()) 
    404404 
    405405            if hasattr(httplib, 'responses'): 
    406406                raise remoting.RemotingError, "HTTP Gateway reported status %d %s" % ( 
     
    419419        content_length = http_response.getheader('Content-Length') 
    420420        bytes = '' 
    421421 
    422         self.logger.debug('Content-Length = %s' % content_length) 
    423  
     422        self.logger.debug('Content-Length: %s' % content_length) 
     423        self.logger.debug('Server: %s' % http_response.getheader('Server')) 
     424         
    424425        if content_length is None: 
    425426            bytes = http_response.read() 
    426427        else: 
     
    429430        self.logger.debug('Read %d bytes for the response' % len(bytes)) 
    430431 
    431432        response = remoting.decode(bytes) 
    432         self.logger.debug('Response = %s' % response) 
     433        self.logger.debug('Response: %s' % response) 
    433434 
    434435        if remoting.APPEND_TO_GATEWAY_URL in response.headers: 
    435436            self.original_url += response.headers[remoting.APPEND_TO_GATEWAY_URL]