-
Notifications
You must be signed in to change notification settings - Fork 7.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
Refactored use of LOG_X(LOG_TAG, ...) to log_x(...) #2672
Conversation
libraries/ESPmDNS/src/ESPmDNS.cpp
Outdated
@@ -82,7 +82,7 @@ void MDNSResponder::setInstanceName(String name) { | |||
|
|||
void MDNSResponder::enableArduino(uint16_t port, bool auth){ | |||
mdns_txt_item_t arduTxtData[4] = { | |||
{(char*)"board" ,(char*)ARDUINO_VARIANT}, | |||
{(char*)"board" ,(char*)"esp32"}, |
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.
This should be reverted, the ARDUINO_VARIANT variable is injected with the board name typically. The ESPmDNS library checks explicitly for this define and if missing defines it itself as you have done here: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESPmDNS/src/ESPmDNS.h#L48-L51
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.
yeah, why would you change that?
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.
I don't know why all these commits are part of this pull request, these are from months ago, and already reverted locally.
It also looks like that code isn't there anymore
Is this refactoring really necessary? It is now broken. If the kconfig does not select CONFIG_ARDUHAL_ESP_LOG (ESP Log forwarding to Arduino Log) then Previously, if you wanted forwarding then EDIT: My apologies..I missed that this was fixed right after v3.2 tag there is a commit to fix the |
this is an Arduino library and will always have CONFIG_ARDUHAL_ESP_LOG defined :) includes will be there and all. What is your use case? |
LOG_TAG is not used in implementation of logging