forked from platypush/platypush
Unparseable context variables should be logged on debug, not warning, level.
This commit is contained in:
parent
ee0685363e
commit
8db8f3e6c4
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue