[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
gettting rid of zLOG
Andreas Jung
andreas at andreas-jung.com
Sun Jan 8 09:18:27 EST 2006
Log message for revision 41216:
gettting rid of zLOG
Changed:
U Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
-=-
Modified: Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
===================================================================
--- Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py 2006-01-08 14:09:52 UTC (rev 41215)
+++ Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py 2006-01-08 14:18:26 UTC (rev 41216)
@@ -40,8 +40,8 @@
from OFS.Application import Application
from OFS.Folder import Folder
import sys
+import time
import traceback
-from zLOG import log_time
sys.setcheckinterval(200)
from Products.Transience.tests import fauxtime
@@ -57,6 +57,12 @@
stuff = {}
+def log_time():
+ """Return a simple time string without spaces suitable for logging."""
+ return ("%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2d"
+ % time.localtime()[:6])
+
+
def _getDB():
db = stuff.get('db')
if not db:
More information about the Zope-Checkins
mailing list