Logging embedded Perl return value
Igor Sysoev
is at rambler-co.ru
Thu Apr 9 09:16:39 MSD 2009
On Wed, Apr 08, 2009 at 11:41:43PM -0400, davidc wrote:
> I'm testing the embedded perl module. Is it possible to log the return value?
>
> i.e. can I set $return to capture the return value of the handler in this example?
>
> log_format main 'Return value is $return';
>
> access_log /path/to/access.log main;
>
> server {
> location / {
> perl Module::handler;
> }
> }
The return value become a value of the $status variable.
--
Игорь Сысоев
http://sysoev.ru
More information about the nginx
mailing list