Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10f1099

Browse files
committed
remove logging handler that shows logging messages to stdout - issue #297
1 parent ccc3c3d commit 10f1099

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,15 +1819,15 @@ def emit(self, record):
18191819
Simply record the emitted events.
18201820
"""
18211821
self.loghist.append({'levelname': record.levelname,
1822-
'text': record.message % record.args if record.args else record.message,
1822+
'text': record.msg % record.args if record.args else record.msg,
18231823
'id': len(self.loghist)+1})
18241824

18251825
if conf.fdLog:
18261826
os.write(conf.fdLog, base64pickle(self.loghist))
18271827

18281828
def _setRestAPILog():
18291829
if hasattr(conf, "fdLog") and conf.fdLog:
1830-
#logger.removeHandler(LOGGER_HANDLER)
1830+
logger.removeHandler(LOGGER_HANDLER)
18311831
LOGGER_RECORDER = LogRecorder()
18321832
logger.addHandler(LOGGER_RECORDER)
18331833

0 commit comments

Comments
 (0)