Skip to content

Commit

Permalink
Another logging bug, this time in listers
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Abercrombie committed Nov 5, 2018
1 parent 258b095 commit f5800fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dynamo_consistency/_version.py
Expand Up @@ -2,4 +2,4 @@
Hold the version here
"""

__version__ = '2.6.2'
__version__ = '2.6.3'
6 changes: 6 additions & 0 deletions dynamo_consistency/backend/listers.py
Expand Up @@ -32,6 +32,12 @@ def __init__(self, thread_num, site):
config_dict = config.config_dict()
self.log = logging.getLogger(__name__ if thread_num is None else \
'%s--thread%i' % (__name__, thread_num))

for hdlr in list(self.log.handlers):
self.log.removeHandler(hdlr)
for hdlr in LOG.handlers:
self.log.addHandler(hdlr)

self.ignore_list = config_dict.get('IgnoreDirectories', [])
self.path_prefix = config_dict.get('PathPrefix', {}).get(site, '')
self.tries = config_dict.get('Retries', 0) + 1
Expand Down
2 changes: 1 addition & 1 deletion dynamo_consistency/cms/filters.py
Expand Up @@ -5,7 +5,7 @@
import logging


LOG = logging.getLogger(__file__)
LOG = logging.getLogger(__name__)


class DatasetFilter(object):
Expand Down

0 comments on commit f5800fd

Please sign in to comment.