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:
|
||||
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\])"', '\1\\"', v)))
|
||||
except Exception as e:
|
||||
logger.warning('Could not set context variable {}={}'.format(k, v))
|
||||
logger.warning('Context: {}'.format(context))
|
||||
logger.exception(e)
|
||||
logger.debug('Could not set context variable {}={}: {}'.format(k, v, str(e)))
|
||||
logger.debug('Context: {}'.format(context))
|
||||
|
||||
parsed_value = ''
|
||||
if not isinstance(_value, str):
|
||||
|
|
Loading…
Reference in a new issue