File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ function(micro_decoder_configure_esp_idf TARGET_LIB COMPONENT_DIR)
99 -Wnon-virtual-dtor
1010 )
1111
12+ # Enable debug-level logging for this library regardless of ESP-IDF's global default.
13+ # ESP-IDF defaults to ERROR in ESPHome, which compiles out all INFO/DEBUG/WARN logs.
14+ # LOG_LOCAL_LEVEL overrides the compile-time maximum for this component only.
15+ target_compile_definitions (${TARGET_LIB} PRIVATE
16+ LOG_LOCAL_LEVEL=ESP_LOG_DEBUG
17+ )
18+
1219 # =========================================================================
1320 # Codec options: translate Kconfig to compiler defines
1421 # =========================================================================
Original file line number Diff line number Diff line change 2020
2121namespace micro_decoder {
2222
23- static constexpr const char * TAG = " audio_decoder" ;
23+ static constexpr const char * TAG = " micro_decoder. audio_decoder" ;
2424
2525static constexpr uint32_t MAX_POTENTIALLY_FAILED_COUNT = 10 ;
2626static constexpr uint32_t READ_TIMEOUT_MS = 20 ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace micro_decoder {
2222// Static constants
2323// ============================================================================
2424
25- static constexpr const char * TAG = " audio_reader" ;
25+ static constexpr const char * TAG = " micro_decoder. audio_reader" ;
2626
2727// ============================================================================
2828// AudioReader
Original file line number Diff line number Diff line change 2626
2727namespace micro_decoder {
2828
29- static constexpr const char * TAG = " decoder_source" ;
29+ static constexpr const char * TAG = " micro_decoder. decoder_source" ;
3030
3131// ============================================================================
3232// Event flag bits
Original file line number Diff line number Diff line change 2626
2727namespace micro_decoder {
2828
29- static constexpr const char * TAG = " http_client" ;
29+ static constexpr const char * TAG = " micro_decoder. http_client" ;
3030
3131static constexpr uint8_t MAX_REDIRECTIONS = 5 ;
3232static constexpr uint8_t MAX_HEADER_ATTEMPTS = 6 ;
Original file line number Diff line number Diff line change 2727
2828namespace micro_decoder {
2929
30- static constexpr const char * TAG = " http_client" ;
30+ static constexpr const char * TAG = " micro_decoder. http_client" ;
3131
3232static constexpr size_t CURL_BUFFER_SIZE = 32UL * 1024UL ;
3333static constexpr int POLL_TIMEOUT_MS = 100 ;
You can’t perform that action at this time.
0 commit comments