diff --git a/components/esp_diagnostics/CMakeLists.txt b/components/esp_diagnostics/CMakeLists.txt index 51543b1..0b29f80 100644 --- a/components/esp_diagnostics/CMakeLists.txt +++ b/components/esp_diagnostics/CMakeLists.txt @@ -34,8 +34,10 @@ idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "include" PRIV_REQUIRES ${priv_req}) -if(NOT CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP) - set(WRAP_FUNCTIONS esp_log_write esp_log_writev) +# If log level is set to NONE or if logging APIs are externally wrapped then skip +# wrapping logging APIs here +if ((NOT CONFIG_LOG_DEFAULT_LEVEL_NONE) AND (NOT CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP)) + list(APPEND WRAP_FUNCTIONS esp_log_write esp_log_writev) endif() if(CONFIG_LIB_BUILDER_COMPILE) diff --git a/components/esp_diagnostics/idf_component.yml b/components/esp_diagnostics/idf_component.yml index 17f9e6f..93fa918 100644 --- a/components/esp_diagnostics/idf_component.yml +++ b/components/esp_diagnostics/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.0.1" +version: "1.0.2" description: Diagnostics component used in ESP Insights, which is a remote diagnostics solution to monitor the health of ESP devices in the field. url: https://github.com/espressif/esp-insights/tree/main/components/esp_diagnostics repository: https://github.com/espressif/esp-insights.git