Commit 6436c1ca authored by Philipp Hörist's avatar Philipp Hörist

Change logging domains

parent 237f50cf
......@@ -31,7 +31,7 @@ from gajim.plugins.plugins_i18n import _
from acronyms_expander.acronyms import DEFAULT_DATA
from acronyms_expander.gtk.config import ConfigDialog
log = logging.getLogger('gajim.plugin_system.acronyms')
log = logging.getLogger('gajim.p.acronyms')
class AcronymsExpanderPlugin(GajimPlugin):
......
......@@ -27,7 +27,7 @@ from gajim.plugins import GajimPlugin
from gajim.plugins.plugins_i18n import _
log = logging.getLogger('gajim.plugin_system.birthday')
log = logging.getLogger('gajim.p.birthday')
TITLE = _('%s has birthday today')
TEXT = _('Send him a message')
......
......@@ -20,7 +20,7 @@ from gajim.common import caps_cache
from gajim.gtk.util import load_icon
log = logging.getLogger('gajim.plugin_system.client_icons')
log = logging.getLogger('gajim.p.client_icons')
class ClientsIconsPlugin(GajimPlugin):
......
......@@ -27,7 +27,7 @@ from gajim.plugins.plugins_i18n import _
from form_handler.gtk.util import get_button
from form_handler.gtk.form import FormDialog
log = logging.getLogger('gajim.plugin_system.form_handler')
log = logging.getLogger('gajim.p.form_handler')
class FormHandlerPlugin(GajimPlugin):
......
......@@ -12,7 +12,7 @@ from gajim.plugins.plugins_i18n import _
from gajim.common.dbus.music_track import MusicTrackListener
log = logging.getLogger('gajim.plugin_system.now_listen')
log = logging.getLogger('gajim.p.now_listen')
class NowListenPlugin(GajimPlugin):
......
......@@ -42,7 +42,7 @@ from omemo.backend.aes import aes_decrypt_file
if sys.platform in ('win32', 'darwin'):
import certifi
log = logging.getLogger('gajim.plugin_system.omemo.filedecryption')
log = logging.getLogger('gajim.p.omemo.filedecryption')
DIRECTORY = os.path.join(configpaths.get('MY_DATA'), 'downloads')
......
......@@ -26,7 +26,7 @@ from gajim.common import app
KeyringItem = namedtuple('KeyringItem',
'type keyid userid fingerprint')
log = logging.getLogger('gajim.plugin_system.openpgp.pgpme')
log = logging.getLogger('gajim.p.openpgp.pgpme')
class PGPContext():
......
......@@ -24,7 +24,7 @@ from gajim.common import app
from openpgp.modules.util import DecryptionFailed
log = logging.getLogger('gajim.plugin_system.openpgp.pygnupg')
log = logging.getLogger('gajim.p.openpgp.pygnupg')
KeyringItem = namedtuple('KeyringItem', 'jid keyid fingerprint')
......
......@@ -20,7 +20,7 @@ from collections import namedtuple
from nbxmpp import JID
log = logging.getLogger('gajim.plugin_system.openpgp.sql')
log = logging.getLogger('gajim.p.openpgp.sql')
TABLE_LAYOUT = '''
CREATE TABLE contacts (
......
......@@ -27,7 +27,7 @@ from gajim.plugins.plugins_i18n import _
from openpgp.modules.util import Trust
log = logging.getLogger('gajim.plugin_system.openpgp.keydialog')
log = logging.getLogger('gajim.p.openpgp.keydialog')
TRUST_DATA = {
Trust.NOT_TRUSTED: ('dialog-error-symbolic',
......
......@@ -24,7 +24,7 @@ from gi.repository import GLib
from gajim.common import app
from gajim.plugins.plugins_i18n import _
log = logging.getLogger('gajim.plugin_system.openpgp.wizard')
log = logging.getLogger('gajim.p.openpgp.wizard')
class Page(IntEnum):
......
......@@ -18,7 +18,7 @@ import logging
from openpgp.modules.util import Trust
log = logging.getLogger('gajim.plugin_system.openpgp.store')
log = logging.getLogger('gajim.p.openpgp.store')
class KeyData:
......
......@@ -46,7 +46,7 @@ from openpgp.backend.sql import Storage
from openpgp.backend.pygpg import PGPContext
log = logging.getLogger('gajim.plugin_system.openpgp')
log = logging.getLogger('gajim.p.openpgp')
# Module name
......
......@@ -42,7 +42,7 @@ except ImportError as e:
else:
ERROR_MSG = None
log = logging.getLogger('gajim.plugin_system.openpgp')
log = logging.getLogger('gajim.p.openpgp')
class OpenPGPPlugin(GajimPlugin):
......
......@@ -36,7 +36,7 @@ from gajim.gtk.dialogs import ErrorDialog
from gajim.gtk.dialogs import InformationDialog
from gajim.gtk.dialogs import YesNoDialog
log = logging.getLogger('gajim.plugin_system.oldpgp')
log = logging.getLogger('gajim.p.oldpgp')
ERROR_MSG = ''
if not app.is_installed('GPG'):
......
......@@ -50,7 +50,7 @@ from gajim.gtk.dialogs import YesNoDialog
from gajim.gtk.dialogs import ConfirmationDialogCheck
from gajim.gtkgui_helpers import get_action
log = logging.getLogger('gajim.plugin_system.plugin_installer')
log = logging.getLogger('gajim.p.plugin_installer')
PLUGINS_URL = 'https://ftp.gajim.org/plugins_master_zip/'
MANIFEST_URL = 'https://ftp.gajim.org/plugins_master_zip/manifests.zip'
......
......@@ -19,7 +19,7 @@ from gajim import gtkgui_helpers
from gajim.gtk.dialogs import InputDialog, WarningDialog
log = logging.getLogger('gajim.plugin_system.set_location')
log = logging.getLogger('gajim.p.set_location')
CHAMPLAIN_AVAILABLE = True
......
......@@ -103,7 +103,7 @@ for this plugin and/or filter log messages.
Run
```
gajim --loglevel gajim.plugin_system.syntax_highlight=DEBUG
gajim --loglevel gajim.p.syntax_highlight=DEBUG
```
in a terminal to display the debug messages.
......
......@@ -11,7 +11,7 @@ from .gtkformatter import GTKFormatter
from .types import MatchType, LineBreakOptions, CodeMarkerOptions
log = logging.getLogger('gajim.plugin_system.syntax_highlight')
log = logging.getLogger('gajim.p.syntax_highlight')
class ChatSyntaxHighlighter:
def hide_code_markup(self, buf, start, end):
......
......@@ -5,7 +5,7 @@ from gi.repository import Pango
from pygments.formatter import Formatter
from gajim.plugins.helpers import log
log = logging.getLogger('gajim.plugin_system.syntax_highlight')
log = logging.getLogger('gajim.p.syntax_highlight')
class GTKFormatter(Formatter):
name = 'GTK Formatter'
......
......@@ -13,7 +13,7 @@ from gajim.plugins import GajimPlugin
from .types import MatchType, LineBreakOptions, CodeMarkerOptions, \
PLUGIN_INTERNAL_NONE_LEXER_ID
log = logging.getLogger('gajim.plugin_system.syntax_highlight')
log = logging.getLogger('gajim.p.syntax_highlight')
def try_loading_pygments():
success = find_module('pygments') is not None
......
......@@ -28,7 +28,7 @@ from gajim.plugins.plugins_i18n import _
if os.name == 'nt':
import certifi
log = logging.getLogger('gajim.plugin_system.preview.http_functions')
log = logging.getLogger('gajim.p.preview.http_functions')
def get_http_head(account, url, verify):
return _get_http_head_direct(url, verify)
......
......@@ -46,7 +46,7 @@ from gajim.gtk.filechoosers import FileSaveDialog
from gajim.gtk.util import get_cursor
log = logging.getLogger('gajim.plugin_system.preview')
log = logging.getLogger('gajim.p.preview')
ERROR_MSG = None
try:
......
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