Anthony Kong wrote:
> I have written a simple app which has some pages that redirects from
> time to time.
> In some situation the redirect takes forever and nothing special is
> logged the error log.
Apart from anything else, have you used something like
LiveHeaders on firefox to watch the to-and-fro of
headers? ie do you know at which stage in the GET-30x-GET
dance it's failing? That will help you narrow things down.
You can use cherrypy.log ("blah") to log messages out to
a log file. But if you want to know what's going on inside
the cherrypy lib code, I've always just poked log / print
statements inside there to track what's going on.
As a (slightly radical) alternative, you could you the
trace or the profile modules to spot what's happening
where. But I'd keep that as a later resort.
TJG