I think there's been some changes to the middleware and to the Python
profiling module, which may be leading to this (older versions of Python
required replacing sys.stdout to capture the profiling output, later
versions stopped requiring this hack).  Maybe you changed your Python
version?  Or upgraded Paste and are still using an older Python version.

On Tue, Apr 28, 2009 at 3:36 PM, Ross Vandegrift <[email protected]> wrote:

>
> Hey everyone,
>
> I noticed when shuffling between config files that my profiling setup
> is busted.  In my middleware.py:
>
>   # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)
>    if config.get('profile'):
>        from paste.debug.profile import ProfileMiddleware
>        app = ProfileMiddleware(app, global_conf)
>
> I used to get a yellow div at the bottom of the screen with the paster
> profiling output.  Now, I get an empty yellow div and the profiling
> data goes to the console.
>
> This isn't any major deal - just an oddness I noticed.  Is there
> something I need to change to use ProfileMiddleware?
>
> --
> Ross Vandegrift
> [email protected]
>
> "If the fight gets hot, the songs get hotter.  If the going gets tough,
> the songs get tougher."
>        --Woody Guthrie
>
> >
>


-- 
Ian Bicking  |  http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to