Skip to content

Commit

Permalink
Enable logging for CloudSMETS components.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul D.Smith committed Dec 10, 2023
1 parent 8d45d27 commit 7a366fb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esp32/cloudsmets/main/cs_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 4 additions & 0 deletions esp32/cloudsmets/main/cs_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions esp32/cloudsmets/main/cs_ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions esp32/cloudsmets/main/cs_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions esp32/cloudsmets/main/cs_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7a366fb

Please sign in to comment.