Replaced logging.getLogger() in other possible places

v0.6
Dmitri Bogomolov 3 years ago
parent a48b51721d
commit f0b4e4ded4
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
  1. 3
      src/l10n.py
  2. 2
      src/plugins/proxyconfig_stem.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'

@ -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,

Loading…
Cancel
Save