Commit 8b486f09 authored by Gintautas Miliauskas's avatar Gintautas Miliauskas

Converted BaseStorage to use logging instead of zLOG.

parent fa85aec0
...@@ -13,20 +13,22 @@ ...@@ -13,20 +13,22 @@
############################################################################## ##############################################################################
"""Handy standard storage machinery """Handy standard storage machinery
$Id: BaseStorage.py,v 1.47 2004/04/13 22:01:51 fdrake Exp $ $Id: BaseStorage.py,v 1.48 2004/04/17 22:19:30 gintautasm Exp $
""" """
import cPickle import cPickle
import threading import threading
import time import time
import logging
import UndoLogCompatible import UndoLogCompatible
import POSException import POSException
from persistent.TimeStamp import TimeStamp from persistent.TimeStamp import TimeStamp
import zLOG
from ZODB import POSException, utils from ZODB import POSException, utils
from ZODB.UndoLogCompatible import UndoLogCompatible from ZODB.UndoLogCompatible import UndoLogCompatible
log = logging.getLogger("zodb.BaseStorage")
class BaseStorage(UndoLogCompatible): class BaseStorage(UndoLogCompatible):
"""Abstract base class that support storage implementations. """Abstract base class that support storage implementations.
...@@ -82,8 +84,7 @@ class BaseStorage(UndoLogCompatible): ...@@ -82,8 +84,7 @@ class BaseStorage(UndoLogCompatible):
def __init__(self, name, base=None): def __init__(self, name, base=None):
self.__name__= name self.__name__= name
zLOG.LOG(self.__class__.__name__, zLOG.DEBUG, log.debug("create storage %s", self.__name__)
"create storage %s" % self.__name__)
# Allocate locks: # Allocate locks:
l = threading.RLock() l = threading.RLock()
......
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