Skip to content

Commit

Permalink
Merge branch 'fix/none_log_level' into 'main'
Browse files Browse the repository at this point in the history
diagnostics: not to wrap logging APIs if log level is NONE

See merge request app-frameworks/esp-insights!161
  • Loading branch information
vikramdattu committed Dec 7, 2023
2 parents cfdd71e + 2990bb3 commit c9605b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions components/esp_diagnostics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion components/esp_diagnostics/idf_component.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c9605b3

Please sign in to comment.