-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove redundant require
#892
Conversation
See also #848 |
@@ -15,7 +15,6 @@ | |||
# | |||
|
|||
require 'fluent/configurable' | |||
require 'fluent/engine' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this require
looks good, but Engine
is referred below to get logger.
I think we need to fix Agent
to get logger in constructor, and to pass it from Engine when RootAgent is created in engine.rb
.
@okkez I added some comments. Could you add some more fixes? |
🆗 I will push fixes in this week. |
This change suppresses following warnings(about 130 lines warnings): lib/fluent/config/configure_proxy.rb:17: warning: loading in progress, circular require considered harmful lib/fluent/config/types.rb:20: warning: loading in progress, circular require considered harmful lib/fluent/event.rb:17: warning: loading in progress, circular require considered harmful lib/fluent/filter.rb:19: warning: loading in progress, circular require considered harmful lib/fluent/agent.rb:18: warning: loading in progress, circular require considered harmful lib/fluent/output.rb:21: warning: loading in progress, circular require considered harmful lib/fluent/root_agent.rb:21: warning: loading in progress, circular require considered harmful
7fdfbe6
to
4d43a98
Compare
I've pushed fixes for all comments. |
Hmm, CI failed. |
CI failed against cc73ce2. |
Thank you very much! LGTM. |
This change suppresses following warnings(about 130 lines warnings):
lib/fluent/config/configure_proxy.rb:17: warning: loading in progress, circular require considered harmful
lib/fluent/config/types.rb:20: warning: loading in progress, circular require considered harmful
lib/fluent/event.rb:17: warning: loading in progress, circular require considered harmful
lib/fluent/filter.rb:19: warning: loading in progress, circular require considered harmful
lib/fluent/agent.rb:18: warning: loading in progress, circular require considered harmful
lib/fluent/output.rb:21: warning: loading in progress, circular require considered harmful
lib/fluent/root_agent.rb:21: warning: loading in progress, circular require considered harmful