[omemo] Change logging domain

This commit is contained in:
Philipp Hörist
2019-03-10 10:11:03 +01:00
parent 424a770377
commit 237f50cfb5
5 changed files with 5 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms
from cryptography.hazmat.primitives.ciphers.modes import GCM from cryptography.hazmat.primitives.ciphers.modes import GCM
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
log = logging.getLogger('gajim.plugin_system.omemo') log = logging.getLogger('gajim.p.omemo')
EncryptionResult = namedtuple('EncryptionResult', 'payload key iv') EncryptionResult = namedtuple('EncryptionResult', 'payload key iv')

View File

@@ -24,7 +24,7 @@ from gajim.plugins.helpers import get_builder
from omemo.backend.util import get_fingerprint from omemo.backend.util import get_fingerprint
log = logging.getLogger('gajim.plugin_system.omemo') log = logging.getLogger('gajim.p.omemo')
class OMEMOConfigDialog(GajimPluginConfigDialog): class OMEMOConfigDialog(GajimPluginConfigDialog):

View File

@@ -33,7 +33,7 @@ from omemo.gtk.util import Trust
from omemo.backend.util import IdentityKeyExtended from omemo.backend.util import IdentityKeyExtended
from omemo.backend.util import get_fingerprint from omemo.backend.util import get_fingerprint
log = logging.getLogger('gajim.plugin_system.omemo') log = logging.getLogger('gajim.p.omemo')
TRUST_DATA = { TRUST_DATA = {

View File

@@ -18,7 +18,6 @@
import os import os
import time import time
import logging
import nbxmpp import nbxmpp
from nbxmpp.protocol import NodeProcessed from nbxmpp.protocol import NodeProcessed
@@ -67,8 +66,6 @@ ALLOWED_TAGS = [
('origin-id', nbxmpp.NS_SID), ('origin-id', nbxmpp.NS_SID),
] ]
log = logging.getLogger('gajim.plugin_system.omemo')
ENCRYPTION_NAME = 'OMEMO' ENCRYPTION_NAME = 'OMEMO'
# Module name # Module name
@@ -87,7 +84,7 @@ class OMEMO(BaseModule):
] ]
def __init__(self, con): def __init__(self, con):
BaseModule.__init__(self, con, log) BaseModule.__init__(self, con, plugin=True)
self.handlers = [ self.handlers = [
StanzaHandler(name='message', StanzaHandler(name='message',

View File

@@ -44,7 +44,7 @@ PROTOBUF_MISSING = "OMEMO can't import Google Protobuf, you can find help in " \
ERROR_MSG = '' ERROR_MSG = ''
log = logging.getLogger('gajim.plugin_system.omemo') log = logging.getLogger('gajim.p.omemo')
if log.getEffectiveLevel() == logging.DEBUG: if log.getEffectiveLevel() == logging.DEBUG:
log_axolotl = logging.getLogger('axolotl') log_axolotl = logging.getLogger('axolotl')
log_axolotl.setLevel(logging.DEBUG) log_axolotl.setLevel(logging.DEBUG)