fixed logging issue (807), thanks Marc

This commit is contained in:
Massimo DiPierro
2012-05-19 10:07:56 -05:00
parent 2d48af247d
commit 6775f89c2e
3 changed files with 12 additions and 2 deletions
+7
View File
@@ -68,6 +68,13 @@ create_missing_folders()
# set up logging for subsequent imports
import logging
import logging.config
# This needed to prevent exception on Python 2.5:
# NameError: name 'gluon' is not defined
# See http://bugs.python.org/issue1436
import gluon.messageboxhandler
logging.gluon = gluon
logpath = abspath("logging.conf")
if os.path.exists(logpath):
logging.config.fileConfig(abspath("logging.conf"))