feat(core): Add Kconfig option to exclude debug log messages
This commit is contained in:
parent
702d79c108
commit
3f48062225
15
app/Kconfig
15
app/Kconfig
@ -402,6 +402,17 @@ endmenu
|
||||
|
||||
menu "USB Logging"
|
||||
|
||||
config ZMK_LOGGING_MINIMAL
|
||||
bool "Suppress all ZMK debug log messages"
|
||||
default false
|
||||
|
||||
if !ZMK_LOGGING_MINIMAL
|
||||
|
||||
config ZMK_LOG_LEVEL
|
||||
default 4
|
||||
|
||||
endif
|
||||
|
||||
config ZMK_USB_LOGGING
|
||||
bool "Enable USB CDC ACM logging to help debug"
|
||||
select LOG
|
||||
@ -417,16 +428,12 @@ config ZMK_USB_LOGGING
|
||||
|
||||
if ZMK_USB_LOGGING
|
||||
|
||||
config ZMK_LOG_LEVEL
|
||||
default 4
|
||||
|
||||
choice USB_CDC_ACM_LOG_LEVEL_CHOICE
|
||||
default USB_CDC_ACM_LOG_LEVEL_OFF
|
||||
endchoice
|
||||
|
||||
choice USB_DRIVER_LOG_LEVEL_CHOICE
|
||||
default USB_DRIVER_LOG_LEVEL_OFF
|
||||
|
||||
endchoice
|
||||
|
||||
# We do this to avoid log loop where logging to USB generates more log messages.
|
||||
|
Loading…
Reference in New Issue
Block a user