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

Logging: Use ISO8601 timestamps #78

Closed
wants to merge 1 commit into from

Conversation

Akrog
Copy link
Contributor

@Akrog Akrog commented Nov 24, 2022

This patch disables the zap development logging mode that was the
default in the Cinder operator.

The new code does not set any zap options and only expects to read
options from the command line.

For development purposes it is convenient to run logging not only in
development mode, but also increase the log levels and change the time
encoding from epoc to iso8601 which is easier to read for humans, so 2
new make targets are added, run-dev and docker-build-dev which are
similar to the run and docker-build targets.

The run-dev target is different from the standard run because it
will only build the operator if the binary doesn't exist.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 24, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Akrog
Once this PR has been reviewed and has the lgtm label, please assign abays for approval by writing /assign @abays in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This patch disables the zap development logging mode that was the
default in the Cinder operator.

The new code does not set any zap options and only expects to read
options from the command line.

For development purposes it is convenient to run logging not only in
development mode, but also increase the log levels and change the time
encoding from epoc to iso8601 which is easier to read for humans, so 2
new make targets are added, `run-dev` and `docker-build-dev` which are
similar to the `run` and `docker-build` targets.

The `run-dev` target is different from the standard `run` because it
will only build the operator if the binary doesn't exist.
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 14, 2023

@Akrog: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images f59d864 link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@Akrog
Copy link
Contributor Author

Akrog commented Apr 3, 2023

This has been fixed somewhere else.

@Akrog Akrog closed this Apr 3, 2023
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.

None yet

2 participants