3 Commits

Author SHA1 Message Date
Thomas Waldmann
3c915e3575 refactor logger code
the original code looked somehow like it was meant to have a lazy on-demand behaviour, just computing what is used in the format string for log output.

problem is that this doesn't really happen practically, the logging code requests ALL values for all keys.
as this stuff is used rather often, the new code was optimized to just build a dictionary of values rather cheaply.
support for request.host was removed as I suspect the required socket operation might be not be cheap enough.
2013-11-09 16:51:44 +01:00
Thomas Waldmann
cd9129f41b request logging: avoid accessing deprecated attributes, implement exclude for attr names 2013-11-09 07:44:43 +01:00
Thomas Waldmann
abb0048c9c add logger decorate to enable logging of infos from django's HttpRequest object 2013-11-09 06:53:16 +01:00