From e45e7d6d33347618c46324ee2ec66699937ac0a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 28 Jul 2010 12:04:04 +0000
Subject: [PATCH] use constants for log levels

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37333 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Tool/SimulationTool.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py
index 46939e8276..b62ce24fa7 100644
--- a/product/ERP5/Tool/SimulationTool.py
+++ b/product/ERP5/Tool/SimulationTool.py
@@ -36,7 +36,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool
 
 from Products.ERP5 import _dtmldir
 
-from zLOG import LOG
+from zLOG import LOG, PROBLEM
 
 from Products.ERP5.Capacity.GLPK import solve
 try:
@@ -1242,7 +1242,7 @@ class SimulationTool(BaseTool):
             # optimisation when from_date is given), emit a log.
             # This can happen if there are more date parameters than mentioned
             # above.
-            LOG('SimulationTool', 100, 'There is more than one date condition'
+            LOG('SimulationTool', PROBLEM, 'There is more than one date condition'
               ' so optimisation got disabled. The result of this call will be'
               ' correct but it requires investigation as some cases might'
               ' have gone unnoticed and produced wrong results.')
@@ -1420,7 +1420,8 @@ class SimulationTool(BaseTool):
                     elif line_a[key] == line_b[key]:
                       result[key] = line_a[key]
                     elif key not in ('date', 'stock_uid', 'path'):
-                      LOG('InventoryTool.getInventoryList.addLineValues', 0,
+                      LOG('InventoryTool.getInventoryList.addLineValues',
+                          PROBLEM,
                           'mismatch for %s column: %s and %s' % \
                           (key, line_a[key], line_b[key]))
                   return result
-- 
2.30.9