On Tue, Apr 28, 2009 at 07:17:17PM -0500, Ian Bicking wrote: > 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.
Yep, my app has thus far remained on Python 2.4, though I've followed any subsequent Paste updates required by Pylons. Like I said, I don't actually need the profiler right now, just something I noticed. So good to know from the other poster that there are alternatives I could explore. Also, would be relatively easy for me to upgrade Python on my devel environment, should I need to profile. Thanks, Ross > > 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 > > > -- Ross Vandegrift [email protected] "If the fight gets hot, the songs get hotter. If the going gets tough, the songs get tougher." --Woody Guthrie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
