[Zope-Checkins] CVS: Zope/lib/python/Products/ZODBMountPoint - Mount.py:1.5

Andreas Jung andreas at andreas-jung.com
Tue Apr 20 10:38:52 EDT 2004


Update of /cvs-repository/Zope/lib/python/Products/ZODBMountPoint
In directory cvs.zope.org:/tmp/cvs-serv10413/lib/python/Products/ZODBMountPoint

Modified Files:
	Mount.py 
Log Message:
zLOG -> logging


=== Zope/lib/python/Products/ZODBMountPoint/Mount.py 1.4 => 1.5 ===
--- Zope/lib/python/Products/ZODBMountPoint/Mount.py:1.4	Thu Apr 15 12:41:05 2004
+++ Zope/lib/python/Products/ZODBMountPoint/Mount.py	Tue Apr 20 10:38:52 2004
@@ -16,6 +16,8 @@
 $Id$"""
 
 import sys
+from logging import getLogger
+
 try:
     from cStringIO import StringIO
 except:
@@ -25,11 +27,11 @@
 import Persistence, Acquisition
 from Acquisition import aq_base
 from ZODB.POSException import MountedStorageError
-from zLOG import LOG, ERROR, INFO, WARNING
 
 from ZODB.DB import DB
 from ZODB.Connection import Connection
 
+LOG = getLogger('Zope.ZODBMountPoint')
 
 class MountPoint(Persistence.Persistent, Acquisition.Implicit):
     """An object that accesses a different database when traversed.
@@ -128,8 +130,7 @@
     def _logConnectException(self):
         """Records info about the exception that just occurred."""
         exc = sys.exc_info()
-        LOG('ZODB', ERROR, 'Failed to mount database. %s (%s)' % exc[:2],
-            error=exc)
+        LOG.error('Failed to mount database. %s (%s)' % exc[:2], exc_info=exc)
         f=StringIO()
         traceback.print_tb(exc[2], 100, f)
         self._v_connect_error = (exc[0], exc[1], f.getvalue())




More information about the Zope-Checkins mailing list