2013-01-07 37 views

回答

1

活塞加载通过utils.rc HTTP状态响应,没有错误引发。

从文档:

Configuration variables 
Piston is configurable in a couple of ways, which allows more granular 
control of some areas without editing the code. 

Setting       Meaning 
settings.PISTON_EMAIL_ERRORS If (when) Piston crashes, it will email the 
           administrators a backtrace (like the Django one 
           you see during DEBUG = True) 
settings.PISTON_DISPLAY_ERRORS Upon crashing, will display a small backtrace 
           to the client, including the method signature 
           expected. 
settings.PISTON_STREAM_OUTPUT When enabled, Piston will instruct Django to 
           stream the output to the client, but please read 
           streaming before enabling it. 

我建议设置一个记录器,sentryraven起来是相当方便的,你会得到配置自己的日志级别和处理程序。