0001-logger-skip-request-objects-that-are-actually-socket.patch
hobo/logger.py | ||
---|---|---|
91 | 91 |
record.ip = self.DEFAULT_IP |
92 | 92 |
record.path = self.DEFAULT_PATH |
93 | 93 |
record.request_id = self.DEFAULT_REQUEST_ID |
94 |
if request is not None: |
|
94 |
if request is not None and hasattr(request, 'META'):
|
|
95 | 95 |
record.ip = request.META.get('REMOTE_ADDR', self.DEFAULT_IP) |
96 | 96 |
record.path = request.get_full_path() |
97 | 97 |
record.request_id = 'r:' + hex(id(request))[2:].upper() |
98 |
- |