From 210e6d9e1df6f2f714469e19d600061705b159ee Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Mon, 14 Sep 2009 14:04:55 +0000 Subject: [PATCH] reverting a recent change to check whether the test will suceed with this --- sfa/util/sfalogging.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sfa/util/sfalogging.py b/sfa/util/sfalogging.py index d801e6ef..e966be59 100644 --- a/sfa/util/sfalogging.py +++ b/sfa/util/sfalogging.py @@ -3,15 +3,10 @@ import logging #SFA access log initialization SFA_ACCESS_LOGFILE='/var/log/sfa_access.log' -SFA_HTTPD_ACCESS_LOGFILE='/tmp/sfa_httpd_access.log' logger=logging.getLogger() logger.setLevel(logging.INFO) -try: - logfile=logging.FileHandler(SFA_ACCESS_LOGFILE) -except IOError: - # This is usually a permissions error becaue the file is - # owned by root, but httpd is trying to access it. - logfile=logging.FileHandler(SFA_HTTPD_ACCESS_LOGFILE) +logfile=logging.FileHandler(SFA_ACCESS_LOGFILE) +logfile=logging.FileHandler(SFA_HTTPD_ACCESS_LOGFILE) formatter = logging.Formatter("%(asctime)s - %(message)s") logfile.setFormatter(formatter) logger.addHandler(logfile) -- 2.47.0