Re: using uninitialized pat variable while logging request

2013-11-16 Thread Jonathan Matthews
On 16 Nov 2013 01:02, Toni Mueller support-ng...@oeko.net wrote: Unfortunately, there is nothing between the info (too little) and debug log levels (too much). But it was fruitful, as I found the problem. :) Why don't you let the list know how you fixed it, so the next person with the same

using uninitialized pat variable while logging request

2013-11-15 Thread Toni Mueller
$pat should be _always_ defined, right? Well... I find this in the error log: [warn] 11092#0: *15719589 using uninitialized pat variable while logging request, client: 4.3.2.1, server: www.example.com For a lot of requests, the value of the variable does appear in the log file, but for a good

Re: using uninitialized pat variable while logging request

2013-11-15 Thread Valentin V. Bartenev
On Saturday 16 November 2013 02:24:43 Toni Mueller wrote: Hi, to debug my locations, I have a variable in my configuration that I reference during logging. The log format, included from nginx.conf: log_format mylogformat '$remote_addr - $remote_user [$time_local] $request ' '$status

Re: using uninitialized pat variable while logging request

2013-11-15 Thread Toni Mueller
Hi, On Sat, Nov 16, 2013 at 04:07:19AM +0400, Valentin V. Bartenev wrote: The set directive isn't something essential, and actually it is just a directive from the rewrite module. See here how it works: http://nginx.org/en/docs/http/ngx_http_rewrite_module.html It is evaluated on the