-
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
Fix problem that some system configs are not reflected #4064
Conversation
Options explicitly specified in command line should be preferred to options specified in system config. However, options that have a default value, such as `suppress_repeated_stacktrace`, are preferred even when they are not specified in the command line. Because of this, the following setting is not be reflected. ``` <system> suppress_repeated_stacktrace false </system> ``` Signed-off-by: Daijiro Fukuda <[email protected]>
We can discard this logic now, and we should have the corresponding test here too, |
Signed-off-by: Daijiro Fukuda <[email protected]>
This priority problem is fixed fundamentally, so we don't need this logic now. Signed-off-by: Daijiro Fukuda <[email protected]>
Fixed. |
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.
LGTM
Sorry for the delay, I missed the additional fixes... |
Thanks for your review! |
Fix bug of: * fluent#4064 * 8e9f46a Signed-off-by: Daijiro Fukuda <[email protected]>
end | ||
return unless b | ||
cur_level = cmd_opts.fetch(:log_level, default_opts[:log_level]) | ||
cmd_opts[:log_level] = [cur_level + 1, Fluent::Log::LEVEL_TRACE].max |
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.
Oops, I overlooked it...
#4090
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.
Sorry for my simple mistake.
This option is explained as "add plugin directory". However, since v1.16.0, the behavior has changed to overwrite the default value unintentionally. (PR: fluent#4064, commit: 41678bf). We should revert it to the original behavior. Signed-off-by: Daijiro Fukuda <[email protected]>
This option is explained as "add plugin directory". However, since v1.16.0, the behavior has changed to overwrite the default value unintentionally. (PR: fluent#4064, commit: 41678bf). We should revert it to the original behavior. Signed-off-by: Daijiro Fukuda <[email protected]>
Backported from fe5843f --- This option is explained as "add plugin directory". However, since v1.16.0, the behavior has changed to overwrite the default value unintentionally. (PR: #4064, commit: 41678bf). We should revert it to the original behavior. Signed-off-by: Daijiro Fukuda <[email protected]>
Backported from fe5843f --- This option is explained as "add plugin directory". However, since v1.16.0, the behavior has changed to overwrite the default value unintentionally. (PR: #4064, commit: 41678bf). We should revert it to the original behavior. Signed-off-by: Daijiro Fukuda <[email protected]>
Which issue(s) this PR fixes:
I found this problem during fixing:
I thought this should be fixed in a separate PR, so I made this PR first.
What this PR does / why we need it:
Options explicitly specified in command line should be preferred to options specified in system config.
However, options that have a default value, such as
suppress_repeated_stacktrace
, are preferred even when they are not specified in the command line.Because of this, the following setting is not reflected.
In order to realize this specification, we should pass only options that are explicitly specified in the command line to
Superviser.new()
.Docs Changes:
Not needed.
Release Note:
Same as the title.
This PR allows
suppress_repeated_stacktrace
from SystemConfig to be reflected to the supervisor correctly, but we still have the problem that it is not reflected to the workers.It will be fixed at