update logging

This commit is contained in:
2025-02-26 18:43:05 +01:00
parent c38ac4d3da
commit 277b104804
4 changed files with 88 additions and 93 deletions

View File

@@ -155,4 +155,29 @@ pub enum LogMessage {
mqtt_stay_alive_rec,
#[strum(serialize = "Unknown topic recieved {{txt_long}}")]
unknown_topic,
#[strum(serialize = "Partition state is {{txt_long}}")]
partition_state,
#[strum(serialize = "Mounted Filesystem free {{a}} total {{b}} use {{txt_short}}")]
filesystem_mount,
#[strum(serialize = "Mounting Filesystem, this will format the first time and needs quite some time!")]
mounting_filesystem,
#[strum(serialize = "Year inplausible, force config mode")]
year_inplausible_force_config,
#[strum(serialize = "Going to config mode, due to request from prior run")]
config_mode_software_override,
#[strum(serialize = "Going to config mode, due to request via config mode button")]
config_mode_button_override,
#[strum(serialize = "Going to normal mode")]
normal_run,
#[strum(serialize = "Missing normal config, entering config mode {{txt_long}}")]
config_mode_missing_config,
#[strum(serialize = "startup state wifi {{a}} sntp {{b}} mqtt {{txt_short}}")]
startup_info,
#[strum(serialize = "Trying to pump for {{b}}s with pump {{a}} now dryrun: {{txt_short}}")]
pump_plant,
#[strum(serialize = "Enable main power dryrun: {{a}}")]
enable_main,
#[strum(serialize = "Pumped multiple times, but plant is still to try attempt: {{a}} limit :: {{b}} plant: {{txt_short}}")]
consecutive_pump_count_limit
}