From: Anil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr> Date: Mon, 14 Sep 2009 14:04:55 +0000 (+0000) Subject: reverting a recent change to check whether the test will suceed with this X-Git-Tag: sfa-0.9-1~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=210e6d9e1df6f2f714469e19d600061705b159ee;p=sfa.git reverting a recent change to check whether the test will suceed with this --- 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)