Hi,
in some older web2py ( Version 2.10.4-stable+timestamp.2015.04.26.15.11.54
)
and I want to get all the SQL's of the request..
I see, that they are stored in db._timings but truncated to 100
in adapters/base.py
TIMINGSSIZE = 100
def log_execute(self, *a, **b):
*...*
ret = self.cursor.execute(command, *a[1:], **b)
self.db._timings.append((command,time.time()-t0))
del self.db._timings[:-TIMINGSSIZE] ### Truncated here :/
return ret
My question:
(how) can I increase "TIMINGSIZE" withoug editing the package...
some monkeypaching magic?
ps.: I found i could use pyDAL logger -- but it would mix requests from
different sessions, I guess..
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.