Replaced logging.getLogger() in other possible places
This commit is contained in:
parent
a48b51721d
commit
f0b4e4ded4
|
@ -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…
Reference in New Issue
Block a user