solr output plugin: prevent stdout buffering

This is not yet needed, but a preparation for two-way conversations
which will happen later (and at that time we'd probably forget about
the buffering ;)).
This commit is contained in:
Rainer Gerhards 2014-01-28 16:48:05 +01:00
parent cd652bad58
commit df35b48f6b

View File

@ -93,4 +93,5 @@ while keepRunning == 1:
break;
if len(msgs) > 0:
onReceive(msgs)
sys.stdout.flush() # very important, Python buffers far too much!
onExit()