[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/Sessions/BrowserIdManager.py
death to zLOG
Andreas Jung
andreas at andreas-jung.com
Wed May 12 12:55:49 EDT 2004
Log message for revision 24593:
death to zLOG
-=-
Modified: Zope/trunk/lib/python/Products/Sessions/BrowserIdManager.py
===================================================================
--- Zope/trunk/lib/python/Products/Sessions/BrowserIdManager.py 2004-05-12 16:53:43 UTC (rev 24592)
+++ Zope/trunk/lib/python/Products/Sessions/BrowserIdManager.py 2004-05-12 16:55:49 UTC (rev 24593)
@@ -31,7 +31,7 @@
from urlparse import urlparse, urlunparse
from ZPublisher.BeforeTraverse import registerBeforeTraverse, \
unregisterBeforeTraverse, queryBeforeTraverse
-import zLOG
+import logging
b64_trans = string.maketrans('+/', '-.')
b64_untrans = string.maketrans('-.', '+/')
@@ -49,6 +49,8 @@
ADD_BROWSER_ID_MANAGER_PERM="Add Browser Id Manager"
TRAVERSAL_APPHANDLE = 'BrowserIdManager'
+LOG = logging.getLogger('Zope.BrowserIdManager')
+
def constructBrowserIdManager(
self, id=BROWSERID_MANAGER_NAME, title='', idname='_ZopeId',
location=('cookies', 'form'), cookiepath='/', cookiedomain='',
@@ -469,8 +471,7 @@
# fail if we cannot find a browser id manager (that means this
# instance has been "orphaned" somehow)
if browser_id_manager is None:
- zLOG.LOG('Browser Id Manager Traverser', zLOG.ERROR,
- 'Could not locate browser id manager!')
+ LOG.error('Could not locate browser id manager!')
return
try:
@@ -498,8 +499,7 @@
request._script.append(quote(bid_name))
request._script.append(quote(browser_id))
except:
- zLOG.LOG('Browser Id Manager Traverser', zLOG.ERROR,
- 'indeterminate error', error=sys.exc_info())
+ LOG.error('indeterminate error', exc_info=sys.exc_info())
def getB64TStamp(
b2a=binascii.b2a_base64,gmtime=time.gmtime, time=time.time,
More information about the Zope-Checkins
mailing list