Hello!
On Wed, Apr 2, 2014 at 11:55 AM, mackenzie.sweeney wrote:
> I have the following block in my nginx.conf...
>
[...]
>
> ...but nothing is being logged when I run.
>
> $ curl 'http://localhost/test'
>
> What could I be missing here?
I've just run your example on my side and it works for me:
$ grep '\[lua]' logs/error.log
2014/04/04 12:24:34 [info] 5718#0: *1 [lua] body_filter_by_lua:4:
{"this":"is","a":"test"}
2014/04/04 12:24:34 [info] 5718#0: *1 [lua] body_filter_by_lua:4:
, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1",
host: "localhost"
Are you looking at the right error.log file? Or querying the right
nginx? I'm asking because I sometimes make such dumb mistakes myself
:P
Best regards,
-agentzh