Fixed pypo config file loading
This commit is contained in:
parent
0f12362516
commit
cca9ba0c36
5 changed files with 8 additions and 6 deletions
|
@ -89,11 +89,11 @@ logging.captureWarnings(True)
|
|||
|
||||
# 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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue