From e6e15a214f719e8d8cb6edc47e64e8d3a26ef92b Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sun, 5 May 2024 21:08:24 +0200 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + tasmota/tasmota.ino | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96cba020f..4e710d6c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index c28db4fa2..ced7f4fd3 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -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();