Commit a428b282 authored by Vincent Pelletier's avatar Vincent Pelletier

Make it easier to track down where this message comes from when reading the log.

Use symbolic priority name.
Do not duplicate log priority name.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19530 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87b48f7e
...@@ -35,7 +35,7 @@ from Products.ERP5Type.TransactionalVariable import getTransactionalVariable ...@@ -35,7 +35,7 @@ from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5.Document.Movement import Movement from Products.ERP5.Document.Movement import Movement
from zLOG import LOG from zLOG import LOG, WARNING
from Acquisition import aq_base from Acquisition import aq_base
...@@ -167,8 +167,9 @@ class SimulationMovement(Movement): ...@@ -167,8 +167,9 @@ class SimulationMovement(Movement):
parent_state = self.getParentValue().getSimulationState() parent_state = self.getParentValue().getSimulationState()
return parent_to_movement_simulation_state[parent_state] return parent_to_movement_simulation_state[parent_state]
except (KeyError, AttributeError): except (KeyError, AttributeError):
LOG('ERP5 WARNING:',100, 'Could not acquire getSimulationState on %s' LOG('SimulationMovement.getSimulationState', WARNING,
% self.getRelativeUrl()) 'Could not acquire simulation state from %s'
% self.getRelativeUrl())
return None return None
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
......
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