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 duplicated fields from logging #2206
Comments
sxd
added a commit
that referenced
this issue
Apr 6, 2024
Since controller-runtime adds their own reconcileID, adding a uuid field is not needed anymore Closes #2206 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
leonardoce
pushed a commit
that referenced
this issue
Apr 6, 2024
Since controller-runtime adds their own reconcileID, adding a uuid field is not needed anymore Closes #2206 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
leonardoce
pushed a commit
that referenced
this issue
Apr 6, 2024
Since controller-runtime adds their own `reconcileID`, adding a uuid field is not needed anymore. Partially closes: #2206 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
leonardoce
pushed a commit
that referenced
this issue
Apr 6, 2024
Since controller-runtime adds their own `reconcileID`, adding a uuid field is not needed anymore. Partially closes: #2206 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
leonardoce
pushed a commit
that referenced
this issue
Apr 6, 2024
Since controller-runtime adds their own `reconcileID`, adding a uuid field is not needed anymore. Partially closes: #2206 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since controller-runtime 0.12, the logger in the request context already has the reconcileID field containing a unique identified of the request. Also, the default LogConstructor adds the name and namespace to every line.
This change makes most of our https://github.com/cloudnative-pg/cloudnative-pg/blob/b87182bdfff4eefcb2d619f9296ffc8edd159c09/pkg/management/log/log.go redundant, and we should remove it.
The text was updated successfully, but these errors were encountered: