Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STORM-414: support logging level to multilang protocol spout and bolt #196

Merged
merged 1 commit into from
Jul 25, 2014
Merged

STORM-414: support logging level to multilang protocol spout and bolt #196

merged 1 commit into from
Jul 25, 2014

Conversation

dashengju
Copy link
Contributor

https://issues.apache.org/jira/browse/STORM-414

@mahall create a PR: #24 , Added logging level to multilang protocol spout and bolt. But he closed it with no reason.

@msukmanowsky create a PR before to apache: nathanmarz/storm#626 , Allow ShellBolts to optionally specify the logging level. But he did not modify ShellSpout and storm.py.

This improvement add optional logging level to Multilang Protocol's log method. And add implementation in python and ruby.

@dashengju dashengju changed the title STORM-414: add loglevel to multilang protocol log method STORM-414: support logging level to multilang protocol spout and bolt Jul 18, 2014
@@ -158,6 +157,33 @@ private void querySubprocess() {
}
}

private void handleLog(ShellMsg shellMsg) {
String msg = shellMsg.getMsg();
msg = "ShellLog" + _process.getProcessInfoString() + msg;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have some white space in here? to split some of this up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed the white space. Because _process.getProcessInfoString() return a string with white space at begin and end, so I did not add white space here.

And I think the best way is remove white space in _process.getProcessInfoString()'s return, and add white space in here explicitly, and I have change the code.

@revans2
Copy link
Contributor

revans2 commented Jul 18, 2014

The code looks great as is. I had a few minor comments though that should hopefully make this feature easier to use.

@dashengju
Copy link
Contributor Author

@revans2

I have modified the white space problem and add more log function for easy use.
And I have tested log function with python version in our test environment, at the same time, I fixed a bug in prior commit version.

thanks for your review and suggestion, and please review again.

@revans2
Copy link
Contributor

revans2 commented Jul 21, 2014

Thanks the changes look good to me I am +1 for this. I'll try to check it in tomorrow so others can have some more time to look at it and comment if they want to.

@ptgoetz
Copy link
Member

ptgoetz commented Jul 23, 2014

+1

@dashengju
Copy link
Contributor Author

thanks for @ptgoetz review.

@d2r, can you help to review this PR?

@revans2
Copy link
Contributor

revans2 commented Jul 25, 2014

@dashengju d2r is going to be out until at least Tuesday. You have 2 +1s already and I should have kept my promise to check it in earlier so I am just going to merge it in.

@asfgit asfgit merged commit ea30b70 into apache:master Jul 25, 2014
@dashengju
Copy link
Contributor Author

thanks :)

knusbaum pushed a commit to knusbaum/incubator-storm that referenced this pull request Feb 11, 2015
[BUG 6934347] Added some robustness to auto-creds with no credentials.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants