Seriallog set to `SERIAL_LOG_LEVEL` at boot (#21363)

* Seriallog set to `SERIAL_LOG_LEVEL` at boot

* Ensure seriallog has at least LOG_LEVEL_INFO at boot
This commit is contained in:
s-hadinger 2024-05-05 21:08:24 +02:00 committed by GitHub
parent 7a9f60facc
commit e6e15a214f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ All notable changes to this project will be documented in this file.
- Internal macro `APP_SLEEP` to `TASMOTA_SLEEP` to specify default sleep in ms (#21324)
- ESP32 Core3 platform update from 2024.04.12 to 2024.05.10 (#21347)
- Refactor Tensorflow (#21327)
- Seriallog set to `SERIAL_LOG_LEVEL` at boot
### Fixed
- HASPmota `align` attribute and expand PNG cache (#21228)

View File

@ -427,7 +427,7 @@ void setup(void) {
TasmotaGlobal.active_device = 1;
TasmotaGlobal.global_state.data = 0xF; // Init global state (wifi_down, mqtt_down) to solve possible network issues
TasmotaGlobal.maxlog_level = LOG_LEVEL_DEBUG_MORE;
TasmotaGlobal.seriallog_level = LOG_LEVEL_INFO; // Allow specific serial messages until config loaded
TasmotaGlobal.seriallog_level = (SERIAL_LOG_LEVEL > LOG_LEVEL_INFO) ? SERIAL_LOG_LEVEL : LOG_LEVEL_INFO; // Allow specific serial messages until config loaded and allow more logging than INFO
TasmotaGlobal.power_latching = 0x80000000;
RtcRebootLoad();