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

feat(kafka_skin.h): kafka log support #2655

Merged
merged 2 commits into from
Mar 3, 2023
Merged

feat(kafka_skin.h): kafka log support #2655

merged 2 commits into from
Mar 3, 2023

Conversation

vbirds
Copy link
Contributor

@vbirds vbirds commented Feb 28, 2023

add kafka log support

protected:
void sink_it_(const details::log_msg &msg) override
{
if (producer_ != nullptr)
Copy link
Owner

Choose a reason for hiding this comment

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

seems producer can never be null according to the ctor, so no need check if null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the corrections,I will fix it


~kafka_skin()
{
if (producer_ != nullptr)
Copy link
Owner

Choose a reason for hiding this comment

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

seems producer can never be null according to the ctor, so no need check if null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the corrections,I will fix it

@vbirds vbirds requested a review from gabime March 2, 2023 11:14
@gabime gabime merged commit b25aaec into gabime:v1.x Mar 3, 2023
@gabime
Copy link
Owner

gabime commented Mar 3, 2023

Thanks @vbirds

@SpriteOvO
Copy link
Contributor

@vbirds Is the word skin intended? Or just a typo of sink?

@gabime
Copy link
Owner

gabime commented Mar 4, 2023

Thanks for noticing. Fixed in 2d57e3b

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