diff options
author | drebs <drebs@leap.se> | 2016-09-22 14:44:46 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-09-22 17:57:40 -0300 |
commit | b7340a962bfeae9af28c4b514d0eb077f41dd832 (patch) | |
tree | cd9a31d6b955fdff5eadde452089cf718a299af8 /client/src/leap/soledad/client/encdecpool.py | |
parent | a7ffb49e1169c93af3b728f5db1a5e16e6231590 (diff) |
[feat] centralize logging and use twisted.logger by default
Diffstat (limited to 'client/src/leap/soledad/client/encdecpool.py')
-rw-r--r-- | client/src/leap/soledad/client/encdecpool.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 74a40931..c1a7f651 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -23,22 +23,21 @@ during synchronization. import json -import logging from uuid import uuid4 from twisted.internet.task import LoopingCall from twisted.internet import threads from twisted.internet import defer -from twisted.python import log from leap.soledad.common.document import SoledadDocument from leap.soledad.common import soledad_assert +from leap.soledad.common.log import getLogger from leap.soledad.client.crypto import encrypt_docstr from leap.soledad.client.crypto import decrypt_doc_dict -logger = logging.getLogger(__name__) +logger = getLogger(__name__) # @@ -393,7 +392,7 @@ class SyncDecrypterPool(SyncEncryptDecryptPool): return d def _errback(self, failure): - log.err(failure) + logger.error(failure) self._deferred.errback(failure) self._processed_docs = 0 self._last_inserted_idx = 0 |