8000 esp32: Fix increasing log level via esp.osdebug(). · micropython/micropython@a077823 · GitHub
[go: up one dir, main page]

Skip to content

Commit a077823

Browse files
committed
esp32: Fix increasing log level via esp.osdebug().
At some point the config changed such that no messages above Error level were compiled into the final binary. Closes #12815 This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent a00c9d5 commit a077823

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ports/esp32/boards/sdkconfig.base

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ 8000 -17,9 +17,18 @@ CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y
1717
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
1818

1919
# Change default log level to "ERROR" (instead of "INFO")
20-
CONFIG_LOG_DEFAULT_LEVEL_INFO=n
2120
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
22-
CONFIG_LOG_DEFAULT_LEVEL=1
21+
22+
# Set the maximum included log level higher than the default,
23+
# so esp.osdebug() can enable more logging at runtime.
24+
#
25+
# To increase the max log verbosity to Debug or Verbose instead, comment
26+
# CONFIG_LOG_MAXIMUM_LEVEL_INFO=y and uncomment one of the other settings.
27+
#
28+
# If not needed, the next line can be commented entirely to save binary size.
29+
CONFIG_LOG_MAXIMUM_LEVEL_INFO=y
30+
#CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
31+
#CONFIG_LOG_MAXIMUM_LEVEL_VERBOSE=y
2332

2433
# Main XTAL Config
2534
# Only on: ESP32

0 commit comments

Comments
 (0)
0