It doesn't look like a log issue, looking at what you pasted, you have 2
types of different behaviors when reaching /checkout

one is a redirect to /cart/update_totals and the other is an actual
rendering of the action.

302 means redirect and 200 means rendering. (check HTTP  status code)

So, my guess is that for some reasons sometimes your users are being
redirected, if you would show us the controller code, we might be able to
help more.  Otherwise, you can try what Martin suggested and flush the
logger.

- Matt


On Wed, Dec 2, 2009 at 9:13 PM, Scott Olmsted <[email protected]> wrote:

>
> I'm making enhancements to existing shopping cart code. When one clicks on
> 'Checkout' on the cart page, the code deals with the stuff in the cart to
> create the order, then redirects to a page to collect address information.
>
> Most of the time the log entries after the redirect are not written until
> the next request comes in. I see only
>
> Redirected to http://localhost:3000/checkout
> Completed in 150ms (DB: 17) | 302 Found [http://localhost/cart/update_totals
> ]
>
> and not
>
> ...bunch of SQL...
> Rendering template within layouts/site
> Rendering checkout/addresses
> Rendered checkout/_secure_blurb (0.6ms)
> Rendered checkout/_footer (2.7ms)
> Completed in 365ms (View: 262, DB: 17) | 200 OK [http://localhost/checkout
> ]
>
> until the next request.
>
> Anyone encounter this? Anything can be done about it?
>
> Thanks much,
>
> Scott
>
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to