Skip to content

Simplify async logger in main #2227

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

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

ppkarwasz
Copy link
Contributor

Due to the introduction of Recycler in main and related changes, many async loggers can be simplified:

  • no thread name caching is required,
  • in many methods we can use ReusableLogEvent instead of concrete classes,
  • many casts from ReadOnlyStringMap to StringMap are not necessary.

Copy link
Member

@vy vy left a comment

Choose a reason for hiding this comment

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

LGTM, can be merged.

Due to the introduction of `Recycler` in `main` and related changes,
many async loggers can be simplified:

 * no thread name caching is required,
 * in many methods we can use `ReusableLogEvent` instead of concrete
   classes,
 * many casts from `ReadOnlyStringMap` to `StringMap` are not necessary.
@ppkarwasz ppkarwasz merged commit 05ef38d into apache:main Jan 23, 2024
@ppkarwasz ppkarwasz deleted the sync-core-async branch January 23, 2024 12:58
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.

2 participants