From 7a366fb3bae1b958633732c74c4f97b7c688d08f Mon Sep 17 00:00:00 2001 From: "Paul D.Smith" Date: Sun, 10 Dec 2023 18:09:34 +0000 Subject: [PATCH] Enable logging for CloudSMETS components. --- esp32/cloudsmets/main/cs_app.c | 5 +++++ esp32/cloudsmets/main/cs_cfg.c | 4 ++++ esp32/cloudsmets/main/cs_ota.c | 4 ++++ esp32/cloudsmets/main/cs_web.c | 4 ++++ esp32/cloudsmets/main/cs_wifi.c | 4 ++++ 5 files changed, 21 insertions(+) diff --git a/esp32/cloudsmets/main/cs_app.c b/esp32/cloudsmets/main/cs_app.c index aefaf35..959c744 100644 --- a/esp32/cloudsmets/main/cs_app.c +++ b/esp32/cloudsmets/main/cs_app.c @@ -12,6 +12,11 @@ #include "freertos/queue.h" #include "esp_chip_info.h" #include "esp_flash.h" + +/** + * Allow logging in this file; disabled unless explcitly set. +*/ +#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include "esp_log.h" #include "esp_event.h" diff --git a/esp32/cloudsmets/main/cs_cfg.c b/esp32/cloudsmets/main/cs_cfg.c index 6ceffd9..417cfba 100644 --- a/esp32/cloudsmets/main/cs_cfg.c +++ b/esp32/cloudsmets/main/cs_cfg.c @@ -12,6 +12,10 @@ #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" +/** + * Allow logging in this file; disabled unless explcitly set. +*/ +#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include "esp_log.h" #include "nvs.h" #include "cs_cfg.h" diff --git a/esp32/cloudsmets/main/cs_ota.c b/esp32/cloudsmets/main/cs_ota.c index f4896a4..73bc520 100644 --- a/esp32/cloudsmets/main/cs_ota.c +++ b/esp32/cloudsmets/main/cs_ota.c @@ -18,6 +18,10 @@ #include "esp_netif_ip_addr.h" #include "esp_http_client.h" #include "esp_mac.h" +/** + * Allow logging in this file; disabled unless explcitly set. +*/ +#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include "esp_log.h" #include "cs_cfg.h" #include "cs_ota.h" diff --git a/esp32/cloudsmets/main/cs_web.c b/esp32/cloudsmets/main/cs_web.c index 99b72a5..6f725db 100644 --- a/esp32/cloudsmets/main/cs_web.c +++ b/esp32/cloudsmets/main/cs_web.c @@ -8,6 +8,10 @@ // TODO: Are these headers correct? #include "freertos/FreeRTOS.h" #include "freertos/task.h" +/** + * Allow logging in this file; disabled unless explcitly set. +*/ +#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include "esp_log.h" #include "esp_wifi.h" #include "esp_http_server.h" diff --git a/esp32/cloudsmets/main/cs_wifi.c b/esp32/cloudsmets/main/cs_wifi.c index 15797ce..980ba63 100644 --- a/esp32/cloudsmets/main/cs_wifi.c +++ b/esp32/cloudsmets/main/cs_wifi.c @@ -17,6 +17,10 @@ #include "esp_netif_types.h" #include "esp_netif_ip_addr.h" #include "esp_mac.h" +/** + * Allow logging in this file; disabled unless explcitly set. +*/ +#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include "esp_log.h" #include "cs_wifi.h" #include "cs_cfg.h"