Replaced logging.getLogger() in other possible places

This commit is contained in:
Dmitri Bogomolov 2019-10-17 23:37:56 +03:00
parent a48b51721d
commit f0b4e4ded4
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,7 @@ import time
from bmconfigparser import BMConfigParser from bmconfigparser import BMConfigParser
#logger = logging.getLogger(__name__) logger = logging.getLogger('default')
logger = logging.getLogger('file_only')
DEFAULT_ENCODING = 'ISO8859-1' DEFAULT_ENCODING = 'ISO8859-1'

View File

@ -18,7 +18,7 @@ class DebugLogger(object):
"""Safe logger wrapper for tor and plugin's logs""" """Safe logger wrapper for tor and plugin's logs"""
# pylint: disable=too-few-public-methods # pylint: disable=too-few-public-methods
def __init__(self): def __init__(self):
self._logger = logging.getLogger(__name__.split('.', 1)[0]) self._logger = logging.getLogger('default')
self._levels = { self._levels = {
'err': 40, 'err': 40,
'warn': 30, 'warn': 30,