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

provide an interface to access generated output more as a stream #35

Merged
merged 5 commits into from Aug 14, 2014

Conversation

stdweird
Copy link
Member

No description provided.

@stdweird
Copy link
Member Author

to be used in replacement of code in quattor/ncm-cdispd#9 to handle ncm-ncd call and provide continuous linebased logging.
in future and with addition of a true stream logger, continous output can be produced when executing long running commands.

# not called with empty remainder
if ($remainder) {
$process->(@process_args, $remainder);
$total_out .= $remainder;
Copy link
Member

Choose a reason for hiding this comment

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

It's faster to make @total_out, a list, and then push to it and return its join(''.

@piojo-zz
Copy link
Member

Minor nitpicking, but it's indeed an useful addition.

@piojo-zz
Copy link
Member

The code is fine. We just need to improve the documentation.

@jrha jrha added this to the 14.8 milestone Aug 7, 2014
@jrha
Copy link
Member

jrha commented Aug 14, 2014

As discussed at the standup, sort out the conflicts and this can be merged

@jrha jrha merged commit c6ff615 into quattor:master Aug 14, 2014
@jrha
Copy link
Member

jrha commented Aug 14, 2014

Wasn't difficult, so I did it myself 👸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants