From 1b9b140307d3311a650c8df19e9ec4f31cc99e2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 24 Aug 2006 14:28:41 +0000
Subject: [PATCH] Log with PROBLEM level when the id generator is not found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9404 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Document/Folder.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py
index 06438b3f3f..7993286fe8 100644
--- a/product/ERP5Type/Document/Folder.py
+++ b/product/ERP5Type/Document/Folder.py
@@ -49,7 +49,7 @@ from random import randint
 
 import os
 
-from zLOG import LOG
+from zLOG import LOG, PROBLEM
 
 # Dummy Functions for update / upgrade
 def dummyFilter(object,REQUEST=None):
@@ -160,7 +160,9 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer):
         if idGenerator is None:
           idGenerator = self._generateNextId
       else:
-        LOG('Folder.generateNewId', 0, '%s.id_generator is not a string. Falling back on default behaviour.' % (self.absolute_url(), ))
+        LOG('Folder.generateNewId', PROBLEM,
+          '%s.id_generator is not a string. Falling back on default behaviour.'
+          % (self.getPath(), ))
         idGenerator = self._generateNextId
       my_id = idGenerator()
       while self.hasContent(my_id):
-- 
2.30.9