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

Event router for secondary output #1283

Merged
merged 2 commits into from
Oct 20, 2016
Merged

Conversation

tagomoris
Copy link
Member

This change introduces context_router for all plugin types to provide event_router to secondary output plugins.
context_router is the default event router for filters/outputs in <label> sections.

This fixes #1271.

… to secondary output plugins.

context_router is the default event router for filters/outputs in <label> sections.
@tagomoris
Copy link
Member Author

@repeatedly could you review this change?

@router
end

def router=(r)
# not recommended now...
Copy link
Member

Choose a reason for hiding this comment

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

How about logging warn message here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about it at first, but didn't it finally. Because we can't remove #router= method between v0.x and v1.x for compatibility reason. So displaying warning doesn't help anything.
IMO we should show warning here at the same time with deprecating v0.12 plugin APIs (and remove this method at v2).

Copy link
Member

Choose a reason for hiding this comment

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

I see. I understood the situation.

@repeatedly
Copy link
Member

Others are good.

@tagomoris tagomoris merged commit d87bebb into master Oct 20, 2016
@tagomoris tagomoris deleted the event-router-for-secondary-output branch October 20, 2016 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current Output plugin base class has a probrem that it needs router method if secondary uses router.
2 participants