Skip to content

Commit

Permalink
remove logging handler that shows logging messages to stdout - issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Jan 10, 2013
1 parent ccc3c3d commit 10f1099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/option.py
Expand Up @@ -1819,15 +1819,15 @@ def emit(self, record):
Simply record the emitted events.
"""
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})

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

def _setRestAPILog():
if hasattr(conf, "fdLog") and conf.fdLog:
#logger.removeHandler(LOGGER_HANDLER)
logger.removeHandler(LOGGER_HANDLER)
LOGGER_RECORDER = LogRecorder()
logger.addHandler(LOGGER_RECORDER)

Expand Down

0 comments on commit 10f1099

Please sign in to comment.