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

Enhance logging with thread id #158

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

rzhang10
Copy link
Member

@rzhang10 rzhang10 commented Dec 4, 2024

The previous patch #156 directly prints Thread.currentThread() in the log (which will print out thread name), however, in our gobblin infra, their threads all share the same name. So, we can't distinguish threads in the log.

This patch adds to print the thread id in the log, since thread id is guaranteed by JVM to be unique, we can then have a guaranteed way to distinguish threads in the log.

@rzhang10 rzhang10 merged commit 204ee8b into li-1.0.x Dec 4, 2024
22 checks passed
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.

2 participants