Skip to content

Commit ba6cc0c

Browse files
author
Ralf Schlatterbeck
committed
- more logger fixes -- use correct hierarchical logger names...
...always starting with "roundup." -- otherwise logger configuration changed in changeset 2010-08-09T03:36:[email protected] will not work (e.g. turning debugging on)
1 parent 13f54de commit ba6cc0c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

roundup/backends/back_anydbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def getclass(self, classname):
176176
def clear(self):
177177
"""Delete all database contents
178178
"""
179-
logging.getLogger('hyperdb').info('clear')
179+
logging.getLogger('roundup.hyperdb').info('clear')
180180
for cn in self.classes:
181181
for dummy in 'nodes', 'journals':
182182
path = os.path.join(self.dir, 'journals.%s'%cn)

roundup/backends/back_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def connection_dict(config, dbnamestr=None):
3636
def db_create(config):
3737
"""Clear all database contents and drop database itself"""
3838
command = "CREATE DATABASE %s WITH ENCODING='UNICODE'"%config.RDBMS_NAME
39-
logging.getLogger('hyperdb').info(command)
39+
logging.getLogger('roundup.hyperdb').info(command)
4040
db_command(config, command)
4141

4242
def db_nuke(config, fail_ok=0):

roundup/backends/back_sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def sql_open_connection(self):
9999
os.makedirs(self.config.DATABASE)
100100

101101
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)
103103
# set timeout (30 second default is extraordinarily generous)
104104
# for handling locked database
105105
if sqlite_version == 1:

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def update_class(self, spec, old_spec, force=0):
445445
# no changes
446446
return 0
447447

448-
logger = logging.getLogger('hyperdb')
448+
logger = logging.getLogger('roundup.hyperdb')
449449
logger.info('update_class %s'%spec.classname)
450450

451451
logger.debug('old_spec %r'%(old_spec,))

roundup/mailgw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def __init__(self, instance, arguments=()):
520520
self.default_class = value.strip()
521521

522522
self.mailer = Mailer(instance.config)
523-
self.logger = logging.getLogger('mailgw')
523+
self.logger = logging.getLogger('roundup.mailgw')
524524

525525
# should we trap exceptions (normal usage) or pass them through
526526
# (for testing)

roundup/roundupdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def get_logger(self):
137137
# Because getting a logger requires acquiring a lock, we want
138138
# to do it only once.
139139
if not hasattr(self, '__logger'):
140-
self.__logger = logging.getLogger('hyperdb')
140+
self.__logger = logging.getLogger('roundup.hyperdb')
141141

142142
return self.__logger
143143

0 commit comments

Comments
 (0)