开发者

How can you make Pylons email you the full post parameters with an error report?

开发者 https://www.devze.com 2023-01-08 10:54 出处:网络
Pylons can email you errors when something goes wrong in production mode, bu开发者_JAVA技巧t it truncates the post parameters so it\'s hard to see what the error is. Is there a way to make it email yo

Pylons can email you errors when something goes wrong in production mode, bu开发者_JAVA技巧t it truncates the post parameters so it's hard to see what the error is. Is there a way to make it email you the whole thing?


You can actually make Pylons email you errors in development, testing, and production modes, just so long as you put the correct email information in the .ini file.

The facilities for emailing you error messages come from the WebError middleware, particularly the weberror.reporter module. The only truncating that occurs there is in the subject line of the email. It is possible that the error is being truncated before it gets to WebError. You may want to, on a test deployment, tweak the WebError middleware of your Pylons project to double-check what it's accepting in and sending out.

Can you give an example of such a truncated error message email? Do you mean that it truncates the HTTP POST data of a request that caused an error?

0

精彩评论

暂无评论...
验证码 换一张
取 消