Skip to content

Commit

Permalink
Reordered the logger setup in locale_recommender to catch errors on s…
Browse files Browse the repository at this point in the history
…tartup
  • Loading branch information
crankycoder committed Nov 27, 2018
1 parent 9d84fc0 commit cf14011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taar/recommenders/locale_recommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ class LocaleRecommender(AbstractRecommender):
def __init__(self, ctx):
self._ctx = ctx

self.logger = self._ctx[IMozLogging].get_logger('taar')

self._top_addons_per_locale = LazyJSONLoader(self._ctx,
TAAR_LOCALE_BUCKET,
TAAR_LOCALE_KEY)

self._init_from_ctx()
self.logger = self._ctx[IMozLogging].get_logger('taar')

@property
def top_addons_per_locale(self):
Expand Down

0 comments on commit cf14011

Please sign in to comment.