-
Notifications
You must be signed in to change notification settings - Fork 306
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
DAOS-14635 control: Remove agent default log path #13490
Conversation
Without a logging path, the daos_agent will print logs to stdout instead of a default file location. This behavior is the same as the daos_server. Features: control Required-githooks: true Signed-off-by: Kris Jacque <[email protected]>
Bug-tracker data: |
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. No errors found by checkpatch.
I verified this code manually by running the daos_server and daos_agent with and without log files defined in the config. |
Test stage Unit Test on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13490/1/testReport/ |
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.
looks like a good refactor
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13490/1/testReport/ |
Oops, I see a unit test failing because of one of my message changes. Will re-push. |
Also fixed whitespace issue. Features: control Required-githooks: true Signed-off-by: Kris Jacque <[email protected]>
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. No errors found by checkpatch.
Test stage Functional on EL 8.8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-13490/2/execution/node/1163/log |
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13490/3/testReport/ |
Test failures are all from https://daosio.atlassian.net/browse/DAOS-14718 |
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.
Looks pretty good, nice to consolidate this stuff. Just a few questions/comments.
|
||
// ConfigureLogger configures the logger according to the requested config. | ||
func ConfigureLogger(logIn logging.Logger, cfg LogConfig) error { | ||
log, ok := logIn.(*logging.LeveledLogger) |
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.
Is the typecast needed to get at the .WithJSONOutput()
method?
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.
Yes, and the .SetLevel()
method as well.
Features: control Required-githooks: true Signed-off-by: Kris Jacque <[email protected]>
Test stage Functional on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13490/4/testReport/ |
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-13490/5/testReport/ |
Failures are from https://daosio.atlassian.net/browse/DAOS-14718 again |
CI failures seems to not be related to this PR as they are also happening in the PR https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-13546/1/testReport/ from @tanabarr . |
Also seems to be failing in https://build.hpdd.intel.com/job/daos-stack/job/daos/job/weekly-testing/361/ |
@daos-stack/daos-gatekeeper Any reason not to force land this one? The failures are all existing failures. |
Features: control
Features: control Required-githooks: true
Without a logging path, the daos_agent will print logs to stdout instead of a default file location. This behavior is the same as the daos_server.
Features: control
Required-githooks: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: