Github user revans2 commented on a diff in the pull request:
https://github.com/apache/incubator-storm/pull/196#discussion_r15117713
--- Diff: storm-core/src/multilang/py/storm.py ---
@@ -135,8 +135,8 @@ def fail(tup):
def reportError(msg):
sendMsgToParent({"command": "error", "msg": msg})
-def log(msg):
- sendMsgToParent({"command": "log", "msg": msg})
+def log(msg, level=2):
--- End diff --
Could we add in some other methods that are specific to the levels. It
think it would make using them a lot simpler. log{Trace,Debug,Warn,Error} You
can put in logInfo too, but it feels a bit redundant.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---