Hello!
On Thu, Sep 25, 2014 at 6:04 AM, Pradeep L wrote:
> I wanted to capture all the response files that nginx sends. So i added the
> following code in http block of nginx conf file
> body_filter_by_lua ' ngx.log(ngx.ERR,ngx.arg[1])';
> then in browser i hit the url 127.0.0.1:80/
> in response i got a html page ,
> but this html response body was not logged into error.log file .
> dont know what is happening .
>
One common cause is that you use a too high level in your "error_log"
directive configuration. Will you check that? Basically you should use
a level no higher than "error", for example,
error_log logs/error.log warn; # the level "warn" is lower than "error".
Regards,
-agentzh