Commit 237f50cf authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Change logging domain

parent 424a7703
......@@ -24,7 +24,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms
from cryptography.hazmat.primitives.ciphers.modes import GCM
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')
......
......@@ -24,7 +24,7 @@ from gajim.plugins.helpers import get_builder
from omemo.backend.util import get_fingerprint
log = logging.getLogger('gajim.plugin_system.omemo')
log = logging.getLogger('gajim.p.omemo')
class OMEMOConfigDialog(GajimPluginConfigDialog):
......
......@@ -33,7 +33,7 @@ from omemo.gtk.util import Trust
from omemo.backend.util import IdentityKeyExtended
from omemo.backend.util import get_fingerprint
log = logging.getLogger('gajim.plugin_system.omemo')
log = logging.getLogger('gajim.p.omemo')
TRUST_DATA = {
......
......@@ -18,7 +18,6 @@
import os
import time
import logging
import nbxmpp
from nbxmpp.protocol import NodeProcessed
......@@ -67,8 +66,6 @@ ALLOWED_TAGS = [
('origin-id', nbxmpp.NS_SID),
]
log = logging.getLogger('gajim.plugin_system.omemo')
ENCRYPTION_NAME = 'OMEMO'
# Module name
......@@ -87,7 +84,7 @@ class OMEMO(BaseModule):
]
def __init__(self, con):
BaseModule.__init__(self, con, log)
BaseModule.__init__(self, con, plugin=True)
self.handlers = [
StanzaHandler(name='message',
......
......@@ -44,7 +44,7 @@ PROTOBUF_MISSING = "OMEMO can't import Google Protobuf, you can find help in " \
ERROR_MSG = ''
log = logging.getLogger('gajim.plugin_system.omemo')
log = logging.getLogger('gajim.p.omemo')
if log.getEffectiveLevel() == logging.DEBUG:
log_axolotl = logging.getLogger('axolotl')
log_axolotl.setLevel(logging.DEBUG)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment