disqus / django-perftools

Performance monitoring tools for Django
Apache License 2.0
110 stars 8 forks source link

RemoteProfilingMiddleware doesn't initialize reqnum attribute #2

Open DXist opened 12 years ago

DXist commented 12 years ago

RemoteProfilingMiddleware doesn't initialize reqnum attribute:

AttributeError: 'RemoteProfilingMiddleware' object has no attribute 'reqnum'

differentmatt commented 11 years ago

I ran into this as well.

Appending self.reqnum = 0 to the init method in perftools\middleware\remoteprof.py fixed the problem for me.