full path to logging.config, small fix in Configuration.Database string repr
This commit is contained in:
parent
222d713169
commit
29a0ad85c7
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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():
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user