Author: duncan
Date: Wed Sep 12 14:12:39 2007
New Revision: 9871

Log:
logger was used for two purposes, now split to logger and logfile


Modified:
   branches/rel-1/freevo/src/childapp.py

Modified: branches/rel-1/freevo/src/childapp.py
==============================================================================
--- branches/rel-1/freevo/src/childapp.py       (original)
+++ branches/rel-1/freevo/src/childapp.py       Wed Sep 12 14:12:39 2007
@@ -401,16 +401,16 @@
         self.callback = callback
         self.logger = None
         if logger and doeslogging:
-            logger = os.path.join(config.FREEVO_LOGDIR, '%s-%s-%s.log' % 
(logger, name, os.getuid()))
+            logfile = os.path.join(config.FREEVO_LOGDIR, '%s-%s-%s.log' % 
(logger, name, os.getuid()))
             try:
                 try:
-                    os.unlink(logger)
+                    os.unlink(logfile)
                 except:
                     pass
-                self.logger = open(logger, 'w')
-                _debug_('logging %s child to "%s"' % (name, logger))
+                self.logger = open(logfile, 'w')
+                _debug_('logging %s child to "%s"' % (name, logfile))
             except IOError, e:
-                _debug_('cannot open "%s" for logging: %s' % (logger, e))
+                _debug_('cannot open "%s" for logging: %s' % (logfile, e))
 
 
     def run(self):

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to