Enhanced sheerka.update_concept() logs

This commit is contained in:
2019-12-27 11:33:16 +01:00
parent 26daae4acf
commit 21da87393f
5 changed files with 49 additions and 20 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ class ConceptEvaluator(OneReturnValueEvaluator):
# If we evaluate Concept("foo", body="a").set_prop("a", "'property_a'")
# The body should be 'property_a', and not a concept called a in our universe
if context.obj and concept.name in context.obj.props:
return sheerka.ret(self.name, True, context.obj.props[concept.name].value, parents=[return_value])
value = context.obj.props[concept.name].value
context.log(self.verbose_log, f"{concept.name} is a property. Returning value '{value}'.", self.name)
return sheerka.ret(self.name, True, value, parents=[return_value])
evaluated = sheerka.evaluate_concept(context, concept, self.verbose_log)