Commit 223be8b0 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Disable useless and too verbose LOG warnings.

parent 5b00999a
...@@ -807,9 +807,9 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin): ...@@ -807,9 +807,9 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
except (ArithmeticError, AttributeError, LookupError, TypeError), error: except (ArithmeticError, AttributeError, LookupError, TypeError), error:
# For compatibility, we only log the error and return None. # For compatibility, we only log the error and return None.
# No exception for the moment. # No exception for the moment.
LOG('Resource.convertQuantity', WARNING, # LOG('Resource.convertQuantity', WARNING,
'could not convert quantity for %s (%r)' # 'could not convert quantity for %s (%r)'
% (self.getRelativeUrl(), error)) # % (self.getRelativeUrl(), error))
return None return None
if transformed_resource is not None: if transformed_resource is not None:
......
...@@ -166,9 +166,10 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin): ...@@ -166,9 +166,10 @@ class SimulationMovement(PropertyRecordableMixin, Movement, ExplainableMixin):
getState = applied_rule.getCausalityValue() \ getState = applied_rule.getCausalityValue() \
.aq_explicit.getSimulationMovementSimulationState .aq_explicit.getSimulationMovementSimulationState
except (AttributeError, KeyError): except (AttributeError, KeyError):
LOG('SimulationMovement.getSimulationState', WARNING, pass
'Could not acquire simulation state from %s' # LOG('SimulationMovement.getSimulationState', WARNING,
% self.getRelativeUrl(), error=True) # 'Could not acquire simulation state from %s'
# % self.getRelativeUrl(), error=True)
else: else:
return getState(self) return getState(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment