[Zope-Checkins] CVS: Zope/ZServer/medusa - logger.py:1.13.24.2
Andreas Jung
andreas@digicool.com
Wed, 23 Jan 2002 14:18:03 -0500
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv14900/ZServer/medusa
Modified Files:
Tag: chrism_logrotate_branch
logger.py
Log Message:
bugfix
=== Zope/ZServer/medusa/logger.py 1.13.24.1 => 1.13.24.2 ===
# pass this either a path or a file object.
def __init__ (self, file, flush=1, mode='a'):
+
self.filename = None
+
if type(file) == type(''):
if (file == '-'):
import sys
@@ -52,7 +54,7 @@
if self.filename:
self.file.close()
- self.file = open(file,'a')
+ self.file = open(self.filename,'a')
def __repr__ (self):