diff options
author | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 17:06:09 -0200 |
---|---|---|
committer | Bruno Wagner <bwagner@riseup.net> | 2016-01-13 17:06:09 -0200 |
commit | d0bb9b29f31de20a8f43d697de1d646583a72a12 (patch) | |
tree | f92218e46dd0643be29ebf2d65785394c6bc6854 | |
parent | e84b13eb3821a497eac6fdec3ad7644495a2ab58 (diff) |
Changed the search engine setup to use the logger
-rw-r--r-- | service/pixelated/config/services.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/service/pixelated/config/services.py b/service/pixelated/config/services.py index 0b9b98df..114609e0 100644 --- a/service/pixelated/config/services.py +++ b/service/pixelated/config/services.py @@ -1,3 +1,5 @@ +import logging + from pixelated.adapter.mailstore.leap_attachment_store import LeapAttachmentStore from pixelated.adapter.mailstore.searchable_mailstore import SearchableMailStore from pixelated.adapter.services.mail_service import MailService @@ -10,6 +12,8 @@ from twisted.internet import defer from pixelated.adapter.search.index_storage_key import SearchIndexStorageKey from pixelated.adapter.services.feedback_service import FeedbackService +logger = logging.getLogger(__name__) + class Services(object): @@ -52,7 +56,7 @@ class Services(object): def setup_search_engine(self, leap_home, namespace, search_index_storage_key): key_unicode = yield search_index_storage_key.get_or_create_key() key = str(key_unicode) - print 'The key len is: %s' % len(key) + logger.debug('The key len is: %s' % len(key)) search_engine = SearchEngine(key, namespace, agent_home=leap_home) self.search_engine = search_engine |