comparison roundup/backends/back_sqlite.py @ 4420:9655a1b65974

- more logger fixes -- use correct hierarchical logger names... ...always starting with "roundup." -- otherwise logger configuration changed in changeset 2010-08-09T03:36:06Z!schlatterbeck@users.sourceforge.net will not work (e.g. turning debugging on)
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Thu, 16 Sep 2010 07:44:50 +0000
parents 3e35233ea93c
children 67bef70ab9b9
comparison
equal deleted inserted replaced
4419:eade357a1a16 4420:9655a1b65974
97 # database itself will be created by sqlite if needed 97 # database itself will be created by sqlite if needed
98 if not os.path.isdir(self.config.DATABASE): 98 if not os.path.isdir(self.config.DATABASE):
99 os.makedirs(self.config.DATABASE) 99 os.makedirs(self.config.DATABASE)
100 100
101 db = os.path.join(self.config.DATABASE, 'db') 101 db = os.path.join(self.config.DATABASE, 'db')
102 logging.getLogger('hyperdb').info('open database %r'%db) 102 logging.getLogger('roundup.hyperdb').info('open database %r'%db)
103 # set timeout (30 second default is extraordinarily generous) 103 # set timeout (30 second default is extraordinarily generous)
104 # for handling locked database 104 # for handling locked database
105 if sqlite_version == 1: 105 if sqlite_version == 1:
106 conn = sqlite.connect(db=db) 106 conn = sqlite.connect(db=db)
107 conn.db.sqlite_busy_handler(self.sqlite_busy_handler) 107 conn.db.sqlite_busy_handler(self.sqlite_busy_handler)

Roundup Issue Tracker: http://roundup-tracker.org/