full path to logging.config, small fix in Configuration.Database string repr

This commit is contained in:
Matt Turnbull 2009-08-15 22:36:14 +01:00
parent 222d713169
commit 29a0ad85c7
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ import xml.dom.minidom
from xml.dom.minidom import Node
import logging, logging.config
logging.config.fileConfig("logging.conf")
logging.config.fileConfig(os.path.join(sys.path[0],"logging.conf"))
log = logging.getLogger("config")
log.debug("config logger initialised")
@ -208,7 +208,7 @@ class Database:
if key.startswith('__'): continue
value = getattr(self, key)
if callable(value): continue
temp = temp + ' ' + key + " = " + value + "\n"
temp = temp + ' ' + key + " = " + repr(value) + "\n"
return temp
class Aux_window:

View File

@ -44,7 +44,7 @@ import Card
from Exceptions import *
import logging, logging.config
logging.config.fileConfig("logging.conf")
logging.config.fileConfig(os.path.join(sys.path[0],"logging.conf"))
log = logging.getLogger('db')
class Database:

View File

@ -36,7 +36,7 @@ import gettext
gettext.install('fpdb')
import logging, logging.config
logging.config.fileConfig("logging.conf")
logging.config.fileConfig(os.path.join(sys.path[0],"logging.conf"))
log = logging.getLogger("parser")
class HandHistoryConverter():

View File

@ -39,7 +39,7 @@ import fpdb_parse_logic
import Configuration
import logging, logging.config
logging.config.fileConfig("logging.conf")
logging.config.fileConfig(os.path.join(sys.path[0],"logging.conf"))
log = logging.getLogger('importer')
# database interface modules