Hello!
On Thu, Sep 6, 2012 at 1:03 PM, Jane C <janec2100@gmail.com> wrote:
> I saw this issue under this link:
> https://github.com/chaoslawful/lua-nginx-module/issues/125. I tried to add
> comment but it didn't give me permission so I am sending you this email.
>
> I tried your example. It works! Only problem is $upstream_cache_status is
> empty in log file. How to log cache status in log file?
>
In that example, the $upstream_cache_status variable is only available
in the subrequest. So I think you should enable the log_subrequest
directive:
http://wiki.nginx.org/HttpCoreModule#log_subrequest
Alternatively, you can assign its value to another variable available
in your main request, and log that variable instead.
BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en And you're very welcome
to join this list and discuss such issues there ;)
Best regards,
-agentzh