nathanmarz/storm — pull request #698 by francis-liberty (2013-10-06 13:16:54+00:00)
Title: close #351. in storm.py: turn off stdout to avoid messing with JSON payload sent back to JAVA layer

I write a python decorator to silence prints' output into stdout. Meanwhile sendMsgToParent() function doesn't get affected, so the communication to Java Layer is not affected, too. Use this wrapper on any custom python scripts containing prints without worrying those prints would mess up the tuple emits. I tested with storm-starter's WordCountTopology.