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
|
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'
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user