Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc3c3d commit 10f1099Copy full SHA for 10f1099
1 file changed
lib/core/option.py
@@ -1819,15 +1819,15 @@ def emit(self, record):
1819
Simply record the emitted events.
1820
"""
1821
self.loghist.append({'levelname': record.levelname,
1822
- 'text': record.message % record.args if record.args else record.message,
+ 'text': record.msg % record.args if record.args else record.msg,
1823
'id': len(self.loghist)+1})
1824
1825
if conf.fdLog:
1826
os.write(conf.fdLog, base64pickle(self.loghist))
1827
1828
def _setRestAPILog():
1829
if hasattr(conf, "fdLog") and conf.fdLog:
1830
- #logger.removeHandler(LOGGER_HANDLER)
+ logger.removeHandler(LOGGER_HANDLER)
1831
LOGGER_RECORDER = LogRecorder()
1832
logger.addHandler(LOGGER_RECORDER)
1833
0 commit comments