[Zope-Checkins] CVS: Zope3/src/ZODB - BaseStorage.py:1.48
Gintautas Miliauskas
gintas at pov.lt
Sat Apr 17 18:19:31 EDT 2004
Update of /cvs-repository/Zope3/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv14564/src/ZODB
Modified Files:
BaseStorage.py
Log Message:
Converted BaseStorage to use logging instead of zLOG.
=== Zope3/src/ZODB/BaseStorage.py 1.47 => 1.48 ===
--- Zope3/src/ZODB/BaseStorage.py:1.47 Tue Apr 13 18:01:51 2004
+++ Zope3/src/ZODB/BaseStorage.py Sat Apr 17 18:19:30 2004
@@ -18,15 +18,17 @@
import cPickle
import threading
import time
+import logging
import UndoLogCompatible
import POSException
from persistent.TimeStamp import TimeStamp
-import zLOG
from ZODB import POSException, utils
from ZODB.UndoLogCompatible import UndoLogCompatible
+log = logging.getLogger("zodb.BaseStorage")
+
class BaseStorage(UndoLogCompatible):
"""Abstract base class that support storage implementations.
@@ -82,8 +84,7 @@
def __init__(self, name, base=None):
self.__name__= name
- zLOG.LOG(self.__class__.__name__, zLOG.DEBUG,
- "create storage %s" % self.__name__)
+ log.debug("create storage %s", self.__name__)
# Allocate locks:
l = threading.RLock()
More information about the Zope-Checkins
mailing list