Show
Ignore:
Timestamp:
07/08/08 19:51:10 (5 months ago)
Author:
nick
Message:

Reverting r1474

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/trunk/pyamf/remoting/gateway/wsgi.py

    r1474 r1486  
    6161            ('Content-Type', 'text/plain'), 
    6262            ('Content-Length', str(len(response))), 
    63             ('Server', gateway.SERVER_NAME), 
    6463        ]) 
    6564 
     
    8382            request = remoting.decode(body, context) 
    8483        except pyamf.DecodeError: 
    85             self.logger.exception(gateway.format_exception()) 
     84            self.logger.error(gateway.format_exception()) 
    8685 
    8786            response = "400 Bad Request\n\nThe request body was unable to " \ 
     
    9493                ('Content-Type', 'text/plain'), 
    9594                ('Content-Length', str(len(response))), 
    96                 ('Server', gateway.SERVER_NAME), 
    9795            ]) 
    9896 
     
    107105            raise 
    108106        except: 
    109             self.logger.exception(gateway.format_exception()) 
     107            self.logger.error(gateway.format_exception()) 
    110108 
    111109            response = "500 Internal Server Error\n\nThe request was " \ 
     
    118116                ('Content-Type', 'text/plain'), 
    119117                ('Content-Length', str(len(response))), 
    120                 ('Server', gateway.SERVER_NAME), 
    121118            ]) 
    122119 
     
    129126            stream = remoting.encode(response, context) 
    130127        except pyamf.EncodeError: 
    131             self.logger.exception(gateway.format_exception()) 
     128            self.logger.error(gateway.format_exception()) 
    132129 
    133130            response = "500 Internal Server Error\n\nThe request was " \ 
     
    140137                ('Content-Type', 'text/plain'), 
    141138                ('Content-Length', str(len(response))), 
    142                 ('Server', gateway.SERVER_NAME), 
    143139            ]) 
    144140 
     
    150146            ('Content-Type', remoting.CONTENT_TYPE), 
    151147            ('Content-Length', str(len(response))), 
    152             ('Server', gateway.SERVER_NAME), 
    153148        ]) 
    154149