On Aug 8, 2010, at 6:29 PM, Jonathan Lundell wrote:

> On Aug 8, 2010, at 6:15 PM, Andrew Thompson wrote:
> 
>> On 8/8/2010 9:10 PM, Jonathan Lundell wrote:
>>> Is it possible that lighttpd is altering the URL enough that it doesn't 
>>> match what you've got in routes.py?
>> 
>> Perhaps. I've got to figure out how to test for that.
> 
> I'll try to send Massimo a logging patch tomorrow, but if you look at 
> rewrite.py, it should be semi-clear how to do it yourself. filter_in is where 
> you want to log, and I'd log the arguments and return value of the filter_url 
> call. In your case, the return value 'path' is what you want to see.

The logging patch is now in the trunk. Enable it via routes.py (see 
routes.example.py to see how).

I'm a little hazy on how well logging works generally in web2py, but I *think* 
that if you run web2py.py from the command line you ought to see it. Set 
logging to "error" if you need to be sure it's showing up.

Also, you can enable logging in conjunction with running the routes.py doctest, 
if you have that configured, and see soem of what's going on without running 
the main web2py. But it's not as complete a test.

Reply via email to