Show More
@@ -126,7 +126,8 b' class ColorFormatter(ExceptionAwareForma' | |||||
126 | def _inject_req_id(record): |
|
126 | def _inject_req_id(record): | |
127 | from pyramid.threadlocal import get_current_request |
|
127 | from pyramid.threadlocal import get_current_request | |
128 | req = get_current_request() |
|
128 | req = get_current_request() | |
129 | req_id = 'req_id:%-36s ' % (getattr(req, 'req_id', None)) |
|
129 | dummy = '00000000-0000-0000-0000-000000000000' | |
|
130 | req_id = 'req_id:%-36s' % (getattr(req, 'req_id', dummy)) | |||
130 | record.req_id = req_id |
|
131 | record.req_id = req_id | |
131 |
|
132 | |||
132 |
|
133 |
General Comments 0
You need to be logged in to leave comments.
Login now