Skip to content

Feature: reporting #12

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Feature: reporting #12

wants to merge 3 commits into from

Conversation

kapouer
Copy link
Contributor

@kapouer kapouer commented Sep 27, 2019

Hi, this is something i just added. I thought it was cool enough to PR it !

@kapouer kapouer force-pushed the report branch 2 times, most recently from e66fa9e to 0ce6fae Compare September 27, 2019 09:07
}
if (rule.report) getStream(past).then(function(str) {
Copy link
Owner

Choose a reason for hiding this comment

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

needs a { after the if

also, this should be exclusive to the logStream if above, we can't have the stream being piped into two places unless we introduce another utility that will allow it to be double-piped. It's either one or the other or something funky in between.

I also would rather not introduce get-stream, it's not a package I'm aware of and its usage here doesn't make me entirely comfortable -- there's no promises in this library yet so I'd like to avoid that for now, and there's no catch on this either. I'd rather use bl, which I'm obviously more comfortable with and it'll do the job just fine with a callback, like past.pipe(bl((data, err) => { err or data.toString() ... }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switched to bl (i like bl, i don't know why i used get-stream).
However i don't understand the comment piping in two places: i thought that was okay.

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.

2 participants