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

Fix the thread name printed by the Logger #3382

Merged
merged 5 commits into from
Aug 19, 2024

Conversation

SagarSDagdu
Copy link
Contributor

🎯 Goal

Make the logger print the correct thread name

📝 Summary

The thread name was being read inside loggerQueue.async {}, which made it always print io.getstream.logconfig. Fixed to read it before entering the dispatch queue, and now it prints the correct thread name.

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed

🎁 Meme

image

@SagarSDagdu SagarSDagdu requested a review from a team as a code owner August 15, 2024 06:13
- The thread name was being read inside `loggerQueue.async{}`, which made it always print
`io.getstream.logconfig`. Fixed to read it before entering the dispatch queue, and now it prints the correct thread name.
@nuno-vieira
Copy link
Member

Ahah I see you missed us @SagarSDagdu 😛

Thank you for the fix!

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✅

@nuno-vieira nuno-vieira merged commit 87bf483 into GetStream:develop Aug 19, 2024
4 of 5 checks passed
@SagarSDagdu SagarSDagdu deleted the fix-logger-thread-name branch August 19, 2024 10:41
This was referenced Sep 5, 2024
@laevandus
Copy link
Contributor

Hi @SagarSDagdu, this change has been released with 4.63.0. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants