James Xu
James Xu
So developers need to call this `nullify_stdout` method manually?
Would it be better if `storm.py` handles all the `silence prints` details, so it will be transparent to the developers?
About reassigning `sys.stdout` back, one way I can think of is wrapping all calls to `self.process(tuple)`, `self.initialize(stormconf, context)` etc with your `nullify_stdout`.
It works, but currently only in Chinese. But it should be easy to make it work in English
You'd need to translate it yourself, currently don't have to do it
分隔符改成`++` 吧,这样跟原来请假分隔开来,同时`+`也可以体现`加班`的意思
干的不错!我都看懂了,谢谢!
+1 for @marciomr 's solution, works for me, thanks!