[Erp5-report] r19530 - /erp5/trunk/products/ERP5/Document/SimulationMovement.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 26 18:16:26 CET 2008


Author: vincent
Date: Tue Feb 26 18:16:25 2008
New Revision: 19530

URL: http://svn.erp5.org?rev=19530&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5/Document/SimulationMovement.py

Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=19530&r1=19529&r2=19530&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py Tue Feb 26 18:16:25 2008
@@ -35,7 +35,7 @@
 
 from Products.ERP5.Document.Movement import Movement
 
-from zLOG import LOG
+from zLOG import LOG, WARNING
 
 from Acquisition import aq_base
 
@@ -167,8 +167,9 @@
       parent_state = self.getParentValue().getSimulationState()
       return parent_to_movement_simulation_state[parent_state]
     except (KeyError, AttributeError):
-      LOG('ERP5 WARNING:',100, 'Could not acquire getSimulationState on %s'
-                                % self.getRelativeUrl())
+      LOG('SimulationMovement.getSimulationState', WARNING,
+          'Could not acquire simulation state from %s'
+          % self.getRelativeUrl())
       return None
 
   security.declareProtected( Permissions.AccessContentsInformation,




More information about the Erp5-report mailing list