You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDF version (git rev-parse --short HEAD to get the commit id.): 30545f4
Development Env: Make
Operating System: Ubuntu
Power Supply: USB
Problem Description
After executing esp_log_level_set("*", ESP_LOG_INFO); debug messages from esp_timer module is still here.
Expected Behavior
Set Default log vebosity to debug.
Run esp_log_level_set("*", ESP_LOG_INFO);.
No more debug messages from modules.
Actual Behavior
Set Default log vebosity to debug.
Run esp_log_level_set("*", ESP_LOG_INFO);.
Still getting debug messages from modules.
Steps to repropduce
Listed above
The text was updated successfully, but these errors were encountered:
FayeY
changed the title
esp_log_level_set("*", ESP_LOG_INFO) doesn't work
[TW#25617] esp_log_level_set("*", ESP_LOG_INFO) doesn't work
Aug 20, 2018
projectgus
changed the title
[TW#25617] esp_log_level_set("*", ESP_LOG_INFO) doesn't work
esp_log_level_set("*", ESP_LOG_INFO) doesn't work (IDFGH-333)
Mar 12, 2019
Sorry for the unacceptably long time it's taken someone to reply to you about this, and thanks for being patient.
The root cause for this is that some log lines have to be ISR-safe as they may be called with interrupts disabled, which means they use ESP_EARLY_LOGx macros instead of ESP_LOGx. Until now these macros aren't subject to any runtime filtering - if they're compiled in at the default log level then they're always going to log. The only current workaround is to define the LOG_LOCAL_LEVEL macro in the corresponding source files to change their compile-time log level.
We have a change in review that fixes this. It's still not possible to do tag-specific filtering on "early" log macros, but setting the default level with * will enable/disable them.
This issue will be updated when that fix is available (should be soon).
Environment
git rev-parse --short HEAD
to get the commit id.): 30545f4Problem Description
After executing
esp_log_level_set("*", ESP_LOG_INFO);
debug messages fromesp_timer
module is still here.Expected Behavior
Default log vebosity
to debug.esp_log_level_set("*", ESP_LOG_INFO);
.Actual Behavior
Default log vebosity
to debug.esp_log_level_set("*", ESP_LOG_INFO);
.Steps to repropduce
Listed above
The text was updated successfully, but these errors were encountered: