Author: duncan
Date: Sun Jul 22 09:30:19 2007
New Revision: 9761
Log:
Changed logging to add the user id for stdout and stderr logs
Modified:
branches/rel-1/freevo/src/childapp.py
branches/rel-1/freevo/src/plugins/command.py
Modified: branches/rel-1/freevo/src/childapp.py
==============================================================================
--- branches/rel-1/freevo/src/childapp.py (original)
+++ branches/rel-1/freevo/src/childapp.py Sun Jul 22 09:30:19 2007
@@ -109,14 +109,14 @@
if doeslogging or config.CHILDAPP_DEBUG:
doeslogging = 1
- stdout_logger = os.path.join(config.LOGDIR, '%s-stdout.log' %
(debug_name))
+ stdout_logger = os.path.join(config.LOGDIR, '%s-stdout-%s.log' %
(debug_name, os.getuid()))
try:
self.stdout_log = doeslogging and open(stdout_logger, 'w') or None
except OSError, e:
_debug_('Cannot open "%s": %s' % (stdout_logger, e),
config.DWARNING)
self.stdout_log = None
- stderr_logger = os.path.join(config.LOGDIR, '%s-stderr.log' %
(debug_name))
+ stderr_logger = os.path.join(config.LOGDIR, '%s-stderr-%s.log' %
(debug_name, os.getuid()))
try:
self.stderr_log = doeslogging and open(stderr_logger, 'w') or None
except OSError, e:
@@ -397,7 +397,7 @@
self.callback = callback
self.logger = None
if logger and doeslogging:
- logger = os.path.join(config.LOGDIR, '%s-%s.log' % (logger, name))
+ logger = os.path.join(config.LOGDIR, '%s-%s-%s.log' % (logger,
name, os.getuid()))
try:
try:
os.unlink(logger)
Modified: branches/rel-1/freevo/src/plugins/command.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/command.py (original)
+++ branches/rel-1/freevo/src/plugins/command.py Sun Jul 22 09:30:19 2007
@@ -55,7 +55,7 @@
from gui.PopupBox import PopupBox
def islog(name):
- f = open(os.path.join(config.LOGDIR,'command-std%s.log' % name))
+ f = open(os.path.join(config.LOGDIR, 'command-std%s-%s.log' % (name,
os.getuid())))
data = f.readline()
if name == 'out':
data = f.readline()
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog