minor fix

This commit is contained in:
Miroslav Stampar 2012-02-24 11:05:04 +00:00
parent 5afbd52b61
commit 1f6ce265b9

View File

@ -734,7 +734,7 @@ def dataToStdout(data, forceOutput=False):
sys.stdout.flush() sys.stdout.flush()
if kb.get("multiThreadMode"): if kb.get("multiThreadMode"):
logging._releaseLock() logging._releaseLock()
setFormatterPrependFlag(len(data) == 1) setFormatterPrependFlag(len(data) == 1 and data != '\n')
def dataToSessionFile(data): def dataToSessionFile(data):
if not conf.sessionFile or kb.suppressSession: if not conf.sessionFile or kb.suppressSession:
@ -3174,4 +3174,5 @@ def setFormatterPrependFlag(value=True):
Sets logging formatter flag used for signaling if newline is needed before Sets logging formatter flag used for signaling if newline is needed before
the logging message itself (used in inference mode) the logging message itself (used in inference mode)
""" """
FORMATTER._prepend_flag = value FORMATTER._prepend_flag = value