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
Use same settings for provisioner and controller logs #1249
Conversation
Structured logging tools expect a POSIX timestamp. Only change the timestamp formatting in development log mode.
Previously the ironic provisioner log was created in a separate module, and didn't have access to the CLI arguments. Originally the provisioner was always in structured mode even when the -dev flag was passed to put it into development mode, and then after metal3-io#1175 vice-versa. Create the provisioning logger in main.go using the same settings as the controller logger, and pass it in to the provisioner factory. Fixes metal3-io#1248
/test-centos-e2e-integration-main |
Looks like cert-manager failed to deploy for some reason. Let's rerun. The logs on the ubuntu test looks good btw! |
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
/test-centos-e2e-integration-main |
/cc @honza |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: honza The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Previously the ironic provisioner log was created in a separate module,
and didn't have access to the CLI arguments. Originally the provisioner
was always in structured mode even when the -dev flag was passed to put
it into development mode, and then after #1175 vice-versa.
Create the provisioning logger in main.go using the same settings as the
controller logger, and pass it in to the provisioner factory. Only change the
timestamp formatting in development log mode.