Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to debug redirect
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony Kong  
View profile  
 More options Jun 23, 2:33 am
From: Anthony Kong <anthony.hw.k...@gmail.com>
Date: Mon, 22 Jun 2009 23:33:23 -0700 (PDT)
Local: Tues, Jun 23 2009 2:33 am
Subject: How to debug redirect
Hi, all,

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.

If I killed the server and restarted it again, I may encountered
message about LOCK file. Removing them make the web application accept
connections again.

I wonder if there is anything I can do to capture more debug messages
from the server?

Cheers, Anthony


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Golden  
View profile  
 More options Jun 23, 3:36 am
From: Tim Golden <tjgol...@gmail.com>
Date: Tue, 23 Jun 2009 08:36:45 +0100
Local: Tues, Jun 23 2009 3:36 am
Subject: Re: [cherrypy-users] How to debug redirect

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lakin Wecker  
View profile  
 More options Jun 23, 9:08 am
From: Lakin Wecker <lakin.wec...@gmail.com>
Date: Tue, 23 Jun 2009 07:08:17 -0600
Local: Tues, Jun 23 2009 9:08 am
Subject: Re: [cherrypy-users] Re: How to debug redirect
pyconquer - http://www.aminus.net/wiki/PyConquer  will give you
detailed messages about what's going on inside the server.

Lakin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google