From f0b4e4ded4592bb2c5f5b60a8704438ba07d2ca1 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 17 Oct 2019 23:37:56 +0300 Subject: [PATCH] Replaced logging.getLogger() in other possible places --- src/l10n.py | 3 +-- src/plugins/proxyconfig_stem.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/l10n.py b/src/l10n.py index b3b16341..d18f4199 100644 --- a/src/l10n.py +++ b/src/l10n.py @@ -6,8 +6,7 @@ import time from bmconfigparser import BMConfigParser -#logger = logging.getLogger(__name__) -logger = logging.getLogger('file_only') +logger = logging.getLogger('default') DEFAULT_ENCODING = 'ISO8859-1' diff --git a/src/plugins/proxyconfig_stem.py b/src/plugins/proxyconfig_stem.py index 5bb9a726..bdbfe8ca 100644 --- a/src/plugins/proxyconfig_stem.py +++ b/src/plugins/proxyconfig_stem.py @@ -18,7 +18,7 @@ class DebugLogger(object): """Safe logger wrapper for tor and plugin's logs""" # pylint: disable=too-few-public-methods def __init__(self): - self._logger = logging.getLogger(__name__.split('.', 1)[0]) + self._logger = logging.getLogger('default') self._levels = { 'err': 40, 'warn': 30,