-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Convert XML log4j2 properties files to YAML #3663
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
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
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.
Copilot reviewed 9 out of 17 changed files in this pull request and generated 4 comments.
Files not reviewed (8)
- avro-serializer/src/test/resources/log4j2.xml: Language not supported
- avro-serializer/src/test/resources/log4j2.yaml: Language not supported
- benchmark/src/main/resources/log4j2.xml: Language not supported
- config/log4j2.xml: Language not supported
- core/src/main/resources/log4j2.xml: Language not supported
- core/src/test/resources/log4j2.xml: Language not supported
- protobuf-converter/src/test/resources/log4j2.xml: Language not supported
- schema-rules/src/test/resources/log4j2.xml: Language not supported
Comments suppressed due to low confidence (2)
core/src/main/resources/log4j2.yaml:30
- Trailing whitespace in the appender reference could lead to errors when matching appender names; consider removing it.
- ref: stdout
config/log4j2.yaml:39
- Remove the trailing whitespace from the appender reference for consistency and to avoid potential misconfigurations.
- ref: stdout
| Root: | ||
| level: INFO | ||
| AppenderRef: | ||
| - ref: stdout No newline at end of file |
Copilot
AI
Apr 9, 2025
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.
Trailing whitespace in the appender reference may lead to subtle configuration mismatches. Consider removing the extra space.
| - ref: stdout | |
| - ref: stdout |
Copilot uses AI. Check for mistakes.
| Root: | ||
| level: TRACE | ||
| AppenderRef: | ||
| - ref: stdout No newline at end of file |
Copilot
AI
Apr 9, 2025
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.
Remove the trailing whitespace from the appender reference to ensure consistent behavior across environments.
| - ref: stdout | |
| - ref: stdout |
Copilot uses AI. Check for mistakes.
core/src/test/resources/log4j2.yaml
Outdated
| - name: kafka | ||
| level: ERROR | ||
| AppenderRef: | ||
| - ref: stdout No newline at end of file |
Copilot
AI
Apr 9, 2025
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.
The extra whitespace at the end of the appender reference may cause issues during configuration parsing. Please remove it.
| - ref: stdout | |
| - ref: stdout |
Copilot uses AI. Check for mistakes.
|
|
||
| # Disable logging from reflections warning for connect classpath scans | ||
| - name: org.reflections | ||
| level: ERROR No newline at end of file |
Copilot
AI
Apr 9, 2025
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.
Trailing whitespace in the logging level setting might lead to unintended behavior; please trim the extra space.
| level: ERROR | |
| level: ERROR |
Copilot uses AI. Check for mistakes.
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.
Copilot reviewed 9 out of 17 changed files in this pull request and generated no comments.
Files not reviewed (8)
- avro-serializer/src/test/resources/log4j2.xml: Language not supported
- avro-serializer/src/test/resources/log4j2.yaml: Language not supported
- benchmark/src/main/resources/log4j2.xml: Language not supported
- config/log4j2.xml: Language not supported
- core/src/main/resources/log4j2.xml: Language not supported
- core/src/test/resources/log4j2.xml: Language not supported
- protobuf-converter/src/test/resources/log4j2.xml: Language not supported
- schema-rules/src/test/resources/log4j2.xml: Language not supported
Comments suppressed due to low confidence (1)
protobuf-converter/src/test/resources/log4j2.yaml:26
- The root logger level is set to TRACE here, which is inconsistent with the INFO level used in the other YAML configurations. Verify if this difference is intentional or if it should be standardized for uniformity across modules.
level: TRACE
This comment has been minimized.
This comment has been minimized.
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
What
Convert log4j2 properties files to YAML to stay consistent with other CP components and AK: apache/kafka#17373
Checklist
References
JIRA: DGS-20118
Test & Review
Ran
bin/schema-registry-start config/schema-registry.propertiesOpen questions / Follow-ups