-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Conversation
add kafka log support
include/spdlog/sinks/kafka_skin.h
Outdated
protected: | ||
void sink_it_(const details::log_msg &msg) override | ||
{ | ||
if (producer_ != nullptr) |
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.
seems producer can never be null according to the ctor, so no need check if null
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.
Thank you for the corrections,I will fix it
include/spdlog/sinks/kafka_skin.h
Outdated
|
||
~kafka_skin() | ||
{ | ||
if (producer_ != nullptr) |
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.
seems producer can never be null according to the ctor, so no need check if null
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.
Thank you for the corrections,I will fix it
remove producer_ check
Thanks @vbirds |
@vbirds Is the word |
Thanks for noticing. Fixed in 2d57e3b |
add kafka log support