Unparseable context variables should be logged on debug, not warning, level.

This commit is contained in:
Fabio Manganiello 2021-04-03 16:12:51 +02:00
parent ee0685363e
commit 8db8f3e6c4

View file

@ -132,9 +132,8 @@ class Request(Message):
try: try:
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\])"', '\1\\"', v))) exec('{}="{}"'.format(k, re.sub(r'(^|[^\\])"', '\1\\"', v)))
except Exception as e: except Exception as e:
logger.warning('Could not set context variable {}={}'.format(k, v)) logger.debug('Could not set context variable {}={}: {}'.format(k, v, str(e)))
logger.warning('Context: {}'.format(context)) logger.debug('Context: {}'.format(context))
logger.exception(e)
parsed_value = '' parsed_value = ''
if not isinstance(_value, str): if not isinstance(_value, str):