mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Reject boot_logs without a buffer and exercise per-tag boot levels on ESP8266
This commit is contained in:
@@ -220,6 +220,13 @@ def validate_local_no_higher_than_global(config: ConfigType) -> ConfigType:
|
||||
[CONF_BOOT_LOG_LEVEL],
|
||||
)
|
||||
)
|
||||
if config[CONF_BOOT_LOGS] and config[CONF_BOOT_LOG_BUFFER_SIZE] == 0:
|
||||
errs.append(
|
||||
cv.Invalid(
|
||||
"boot_logs has no effect without boot_log_buffer_size",
|
||||
[CONF_BOOT_LOGS],
|
||||
)
|
||||
)
|
||||
if errs:
|
||||
raise cv.MultipleInvalid(errs)
|
||||
return config
|
||||
|
||||
@@ -9,3 +9,5 @@ esphome:
|
||||
logger:
|
||||
id: logger_id
|
||||
boot_log_buffer_size: 2kB
|
||||
boot_logs:
|
||||
wifi: DEBUG
|
||||
|
||||
Reference in New Issue
Block a user