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

MulticastLogger#reopen shouldn't be used because it's backed by other loggers #15512

Merged
merged 1 commit into from
Jul 5, 2017

Conversation

bdunne
Copy link
Member

@bdunne bdunne commented Jul 5, 2017

raise NotImplementedError for now until we figure out if there is a use case for #reopen and what that looks like.

Based on discussions in #15510

@imtayadeway
Copy link
Contributor

@bdunne this looks better in principle, but perhaps raise StandardError or a custom error here? NotImplementedError implies that it's the current runtime that doesn't support it

@@ -23,6 +23,10 @@ def add(*args, &block)
true
end

def reopen(_logdev)
Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to _logdev = nil here since the argument is optional

@bdunne bdunne force-pushed the multicastlogger_reopen branch from ce86ca7 to ce62bcb Compare July 5, 2017 18:23
@miq-bot
Copy link
Member

miq-bot commented Jul 5, 2017

Checked commit bdunne@ce62bcb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@Fryguy
Copy link
Member

Fryguy commented Jul 5, 2017

NotImplementedError implies that it's the current runtime that doesn't support it

We use this extensively in our code where methods are defined but not implemented (in particular when we create abstract interfaces and this is the "default" base method), so for consistency, I think we can keep it.

@Fryguy Fryguy merged commit fbf22fe into ManageIQ:master Jul 5, 2017
@Fryguy Fryguy added this to the Sprint 64 Ending Jul 10, 2017 milestone Jul 5, 2017
@bdunne bdunne deleted the multicastlogger_reopen branch July 5, 2017 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants