- Timestamp:
- 07/09/08 11:51:16 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pyamf/branches/server-name-317-2/pyamf/remoting/gateway/wsgi.py
r1486 r1495 61 61 ('Content-Type', 'text/plain'), 62 62 ('Content-Length', str(len(response))), 63 ('Server', gateway.SERVER_NAME), 63 64 ]) 64 65 … … 82 83 request = remoting.decode(body, context) 83 84 except pyamf.DecodeError: 84 self.logger.e rror(gateway.format_exception())85 self.logger.exception(gateway.format_exception()) 85 86 86 87 response = "400 Bad Request\n\nThe request body was unable to " \ … … 93 94 ('Content-Type', 'text/plain'), 94 95 ('Content-Length', str(len(response))), 96 ('Server', gateway.SERVER_NAME), 95 97 ]) 96 98 … … 105 107 raise 106 108 except: 107 self.logger.e rror(gateway.format_exception())109 self.logger.exception(gateway.format_exception()) 108 110 109 111 response = "500 Internal Server Error\n\nThe request was " \ … … 116 118 ('Content-Type', 'text/plain'), 117 119 ('Content-Length', str(len(response))), 120 ('Server', gateway.SERVER_NAME), 118 121 ]) 119 122 … … 126 129 stream = remoting.encode(response, context) 127 130 except pyamf.EncodeError: 128 self.logger.e rror(gateway.format_exception())131 self.logger.exception(gateway.format_exception()) 129 132 130 133 response = "500 Internal Server Error\n\nThe request was " \ … … 137 140 ('Content-Type', 'text/plain'), 138 141 ('Content-Length', str(len(response))), 142 ('Server', gateway.SERVER_NAME), 139 143 ]) 140 144 … … 146 150 ('Content-Type', remoting.CONTENT_TYPE), 147 151 ('Content-Length', str(len(response))), 152 ('Server', gateway.SERVER_NAME), 148 153 ]) 149 154
