mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-12-01 22:13:53 +03:00
remove logging handler that shows logging messages to stdout - issue #297
This commit is contained in:
parent
ccc3c3d1a3
commit
10f1099944
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user