Commit e45e7d6d authored by Jérome Perrin's avatar Jérome Perrin

use constants for log levels


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d587fcf4
...@@ -36,7 +36,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool ...@@ -36,7 +36,7 @@ from Products.ERP5Type.Tool.BaseTool import BaseTool
from Products.ERP5 import _dtmldir from Products.ERP5 import _dtmldir
from zLOG import LOG from zLOG import LOG, PROBLEM
from Products.ERP5.Capacity.GLPK import solve from Products.ERP5.Capacity.GLPK import solve
try: try:
...@@ -1242,7 +1242,7 @@ class SimulationTool(BaseTool): ...@@ -1242,7 +1242,7 @@ class SimulationTool(BaseTool):
# optimisation when from_date is given), emit a log. # optimisation when from_date is given), emit a log.
# This can happen if there are more date parameters than mentioned # This can happen if there are more date parameters than mentioned
# above. # 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' ' so optimisation got disabled. The result of this call will be'
' correct but it requires investigation as some cases might' ' correct but it requires investigation as some cases might'
' have gone unnoticed and produced wrong results.') ' have gone unnoticed and produced wrong results.')
...@@ -1420,7 +1420,8 @@ class SimulationTool(BaseTool): ...@@ -1420,7 +1420,8 @@ class SimulationTool(BaseTool):
elif line_a[key] == line_b[key]: elif line_a[key] == line_b[key]:
result[key] = line_a[key] result[key] = line_a[key]
elif key not in ('date', 'stock_uid', 'path'): 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' % \ 'mismatch for %s column: %s and %s' % \
(key, line_a[key], line_b[key])) (key, line_a[key], line_b[key]))
return result return result
......
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