mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
remove logging handler that shows logging messages to stdout - issue #297
This commit is contained in:
@@ -1819,7 +1819,7 @@ class LogRecorder(logging.StreamHandler):
|
|||||||
Simply record the emitted events.
|
Simply record the emitted events.
|
||||||
"""
|
"""
|
||||||
self.loghist.append({'levelname': record.levelname,
|
self.loghist.append({'levelname': record.levelname,
|
||||||
'text': record.message % record.args if record.args else record.message,
|
'text': record.msg % record.args if record.args else record.msg,
|
||||||
'id': len(self.loghist)+1})
|
'id': len(self.loghist)+1})
|
||||||
|
|
||||||
if conf.fdLog:
|
if conf.fdLog:
|
||||||
@@ -1827,7 +1827,7 @@ class LogRecorder(logging.StreamHandler):
|
|||||||
|
|
||||||
def _setRestAPILog():
|
def _setRestAPILog():
|
||||||
if hasattr(conf, "fdLog") and conf.fdLog:
|
if hasattr(conf, "fdLog") and conf.fdLog:
|
||||||
#logger.removeHandler(LOGGER_HANDLER)
|
logger.removeHandler(LOGGER_HANDLER)
|
||||||
LOGGER_RECORDER = LogRecorder()
|
LOGGER_RECORDER = LogRecorder()
|
||||||
logger.addHandler(LOGGER_RECORDER)
|
logger.addHandler(LOGGER_RECORDER)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user