Fix lint.
This commit is contained in:
parent
c071bcbec8
commit
39f7850942
@ -89,7 +89,7 @@ logging.addLevelName(VDEBUG_LEVEL, 'VDEBUG')
|
|||||||
logging.VDEBUG = VDEBUG_LEVEL
|
logging.VDEBUG = VDEBUG_LEVEL
|
||||||
|
|
||||||
|
|
||||||
def vdebug(self, message, *args, **kwargs):
|
def vdebug(self, msg, *args, **kwargs):
|
||||||
"""Log with a VDEBUG level.
|
"""Log with a VDEBUG level.
|
||||||
|
|
||||||
VDEBUG is used when a debug message is rather verbose, and probably of
|
VDEBUG is used when a debug message is rather verbose, and probably of
|
||||||
@ -98,7 +98,7 @@ def vdebug(self, message, *args, **kwargs):
|
|||||||
"""
|
"""
|
||||||
if self.isEnabledFor(VDEBUG_LEVEL):
|
if self.isEnabledFor(VDEBUG_LEVEL):
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
self._log(VDEBUG_LEVEL, message, args, **kwargs)
|
self._log(VDEBUG_LEVEL, msg, args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
logging.Logger.vdebug = vdebug
|
logging.Logger.vdebug = vdebug
|
||||||
@ -128,6 +128,7 @@ shlexer = logging.getLogger('shlexer')
|
|||||||
save = logging.getLogger('save')
|
save = logging.getLogger('save')
|
||||||
message = logging.getLogger('message')
|
message = logging.getLogger('message')
|
||||||
config = logging.getLogger('config')
|
config = logging.getLogger('config')
|
||||||
|
sessions = logging.getLogger('sessions')
|
||||||
|
|
||||||
|
|
||||||
ram_handler = None
|
ram_handler = None
|
||||||
@ -446,10 +447,10 @@ class HTMLFormatter(logging.Formatter):
|
|||||||
'name', 'pathname', 'processName', 'threadName']:
|
'name', 'pathname', 'processName', 'threadName']:
|
||||||
data = str(getattr(record, field))
|
data = str(getattr(record, field))
|
||||||
setattr(record, field, pyhtml.escape(data))
|
setattr(record, field, pyhtml.escape(data))
|
||||||
message = super().format(record)
|
msg = super().format(record)
|
||||||
if not message.endswith(self._colordict['reset']):
|
if not msg.endswith(self._colordict['reset']):
|
||||||
message += self._colordict['reset']
|
msg += self._colordict['reset']
|
||||||
return message
|
return msg
|
||||||
|
|
||||||
def formatTime(self, record, datefmt=None):
|
def formatTime(self, record, datefmt=None):
|
||||||
out = super().formatTime(record, datefmt)
|
out = super().formatTime(record, datefmt)
|
||||||
|
Loading…
Reference in New Issue
Block a user