# HG changeset patch # User Marcin Kuzminski # Date 2018-11-25 17:10:58 # Node ID e10ff2374b03e9866edd9ca38c0ff821a01e3fd0 # Parent 611f6ed0fffc6bb4741e33e3df3fc40e7fb644b8 request-tracking: use consistent lenght formatting diff --git a/rhodecode/lib/logging_formatter.py b/rhodecode/lib/logging_formatter.py --- a/rhodecode/lib/logging_formatter.py +++ b/rhodecode/lib/logging_formatter.py @@ -126,7 +126,8 @@ class ColorFormatter(ExceptionAwareForma def _inject_req_id(record): from pyramid.threadlocal import get_current_request req = get_current_request() - req_id = 'req_id:%-36s ' % (getattr(req, 'req_id', None)) + dummy = '00000000-0000-0000-0000-000000000000' + req_id = 'req_id:%-36s' % (getattr(req, 'req_id', dummy)) record.req_id = req_id