[Zodb-checkins] CVS: Zope3/src/ZODB/FileStorage - format.py:1.7

Gintautas Miliauskas gintas at pov.lt
Sat Apr 17 19:04:54 EDT 2004


Update of /cvs-repository/Zope3/src/ZODB/FileStorage
In directory cvs.zope.org:/tmp/cvs-serv22437/FileStorage

Modified Files:
	format.py 
Log Message:
Updated to use logging instead of zLOG.


=== Zope3/src/ZODB/FileStorage/format.py 1.6 => 1.7 ===
--- Zope3/src/ZODB/FileStorage/format.py:1.6	Mon Mar 15 14:04:29 2004
+++ Zope3/src/ZODB/FileStorage/format.py	Sat Apr 17 19:04:53 2004
@@ -124,10 +124,11 @@
 #   record.
 
 import struct
+import logging
 
 from ZODB.POSException import POSKeyError
 from ZODB.utils import u64, oid_repr, t32
-from zLOG import LOG, ERROR
+
 
 class CorruptedError(Exception):
     pass
@@ -159,6 +160,8 @@
 assert struct.calcsize(TRANS_HDR) == TRANS_HDR_LEN
 assert struct.calcsize(DATA_HDR) == DATA_HDR_LEN
 
+logger = logging.getLogger('zodb.FileStorage.format')
+
 class FileStorageFormatter(object):
     """Mixin class that can read and write the low-level format."""
 
@@ -244,7 +247,7 @@
 
     def fail(self, pos, msg, *args):
         s = ("%s:%s:" + msg) % ((self._name, pos) + args)
-        LOG("FS pack", ERROR, s)
+        logger.error(s)
         raise CorruptedError(s)
 
     def checkTxn(self, th, pos):




More information about the Zodb-checkins mailing list