Browse files

Include more information in log when failing to simplify

  • Loading branch information...
1 parent 0d6c542 commit 1477c50b08819160c0db17b78dfe4771a1455380 @cnorthwood cnorthwood committed Jul 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 molly/utils/simplify.py
View
6 molly/utils/simplify.py
@@ -32,7 +32,8 @@ def simplify_value(value):
try:
out[new_key] = simplify_value(value[key])
except NotImplementedError:
- logger.info('Could not simplify a value', exc_info=True)
+ logger.info('Could not simplify a value of type %s',
+ type(value[key]), exc_info=True)
pass
return out
elif isinstance(value, (list, tuple, set, frozenset)):
@@ -41,7 +42,8 @@ def simplify_value(value):
try:
out.append(simplify_value(subvalue))
except NotImplementedError:
- pass
+ logger.info('Could not simplify a value of type %s',
+ type(value[key]), exc_info=True)
if isinstance(value, tuple):
return tuple(out)
else:

0 comments on commit 1477c50

Please sign in to comment.