diff --git a/python_apps/pypo/pypo/__main__.py b/python_apps/pypo/pypo/__main__.py index 7ebef75541..0b1dc5c4f0 100644 --- a/python_apps/pypo/pypo/__main__.py +++ b/python_apps/pypo/pypo/__main__.py @@ -89,11 +89,11 @@ def configure_environment(): # configure logging try: - logging.config.fileConfig("%s/logging.cfg" % os.path.dirname(os.path.realpath(__file__))) + logging.config.fileConfig("/etc/airtime/pypo_logging.cfg") logger = logging.getLogger() LogWriter.override_std_err(logger) except Exception, e: - print "Couldn't configure logging" + print "Couldn't configure logging", e sys.exit(1) def configure_locale(): diff --git a/python_apps/pypo/pypo/pypofetch.py b/python_apps/pypo/pypo/pypofetch.py index d7c79b581e..4bf68eba60 100644 --- a/python_apps/pypo/pypo/pypofetch.py +++ b/python_apps/pypo/pypo/pypofetch.py @@ -23,7 +23,7 @@ # configure logging -logging_cfg = os.path.join(os.path.dirname(__file__), "logging.cfg") +logging_cfg = "/etc/airtime/pypo_logging.cfg" logging.config.fileConfig(logging_cfg) logger = logging.getLogger() LogWriter.override_std_err(logger) diff --git a/python_apps/pypo/pypo/pypofile.py b/python_apps/pypo/pypo/pypofile.py index 7540a25b58..f29811a250 100644 --- a/python_apps/pypo/pypo/pypofile.py +++ b/python_apps/pypo/pypo/pypofile.py @@ -12,7 +12,8 @@ from std_err_override import LogWriter # configure logging -logging.config.fileConfig("%s/logging.cfg" % os.path.dirname(os.path.realpath(__file__))) +logging_cfg = "/etc/airtime/pypo_logging.cfg" +logging.config.fileConfig(logging_cfg) logger = logging.getLogger() LogWriter.override_std_err(logger) diff --git a/python_apps/pypo/pypo/pypomessagehandler.py b/python_apps/pypo/pypo/pypomessagehandler.py index 62551b7d36..a906f3a1a9 100644 --- a/python_apps/pypo/pypo/pypomessagehandler.py +++ b/python_apps/pypo/pypo/pypomessagehandler.py @@ -16,7 +16,8 @@ from std_err_override import LogWriter # configure logging -logging.config.fileConfig("%s/logging.cfg" % os.path.dirname(os.path.realpath(__file__))) +logging_cfg = "/etc/airtime/pypo_logging.cfg" +logging.config.fileConfig(logging_cfg) logger = logging.getLogger('message_h') LogWriter.override_std_err(logger) diff --git a/python_apps/pypo/pypo/pypopush.py b/python_apps/pypo/pypo/pypopush.py index 75079ca1fb..ac33fcec89 100644 --- a/python_apps/pypo/pypo/pypopush.py +++ b/python_apps/pypo/pypo/pypopush.py @@ -26,7 +26,7 @@ # configure logging -logging_cfg = os.path.join(os.path.dirname(__file__), "logging.cfg") +logging_cfg = "/etc/airtime/pypo_logging.cfg" logging.config.fileConfig(logging_cfg) logger = logging.getLogger() LogWriter.override_std_err(logger)