-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Improve][Connector] Replace printStackTrace with proper logging #10176
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
[Improve][Connector] Replace printStackTrace with proper logging #10176
Conversation
This commit improves code quality by replacing printStackTrace() calls with proper SLF4J logging in connector modules. Changes: - GraphQLWebSocket: Replaced 3 printStackTrace() calls with log.error() - ActivemqClient: Replaced 1 printStackTrace() call with log.error() - SlsSinkWriter: Replaced 1 printStackTrace() call with log.error() Additional improvements: - Added proper interrupt handling for InterruptedException - Ensured exception stack traces are properly logged via SLF4J Benefits: 1. Better production logging - stack traces go to log files instead of stderr 2. Consistent with project logging standards 3. Easier to debug issues in production environments 4. Follows Java best practices for exception handling
chl-wxp
left a comment
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
...n/java/org/apache/seatunnel/connectors/seatunnel/graphql/source/reader/GraphQLWebSocket.java
Outdated
Show resolved
Hide resolved
davidzollo
left a comment
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.
+1
Good job
…ache/seatunnel/connectors/seatunnel/graphql/source/reader/GraphQLWebSocket.java Co-authored-by: dy102 <[email protected]>
davidzollo
left a comment
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.
+1
Good job
zhangshenghang
left a comment
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.
don't delete .idea/vcs.xml
Thanks I have restored .idea/vcs.xml file |
davidzollo
left a comment
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.
+1
This commit improves code quality by replacing printStackTrace() calls with proper SLF4J logging in connector modules.
Changes:
Additional improvements:
Benefits:
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
incompatible-changes.mdto describe the incompatibility caused by this PR.