diff src/memory/persistent.py @ 993:301b342c697a

core: use of the new core.log module: /!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
author Goffi <goffi@goffi.org>
date Sat, 19 Apr 2014 19:19:19 +0200
parents 8f8bdd31375a
children f6182f6418ea
line wrap: on
line diff
--- a/src/memory/persistent.py	Sat Apr 19 16:48:26 2014 +0200
+++ b/src/memory/persistent.py	Sat Apr 19 19:19:19 2014 +0200
@@ -18,7 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from sat.core.i18n import _
-from logging import debug, info, warning, error
+from sat.core.log import getLogger
+log = getLogger(__name__)
 
 
 class MemoryNotInitializedError(Exception):
@@ -35,7 +36,7 @@
         """@param namespace: unique namespace for this dictionary
         @param profile: profile which *MUST* exists, or None for general values"""
         if not self.storage:
-            error(_("PersistentDict can't be used before memory initialisation"))
+            log.error(_("PersistentDict can't be used before memory initialisation"))
             raise MemoryNotInitializedError
         self._cache = {}
         self.namespace = namespace