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