improved logging
This commit is contained in:
@@ -256,6 +256,12 @@ class AppWindowLiveProcessingMixin:
|
||||
for name, value in fields.items()
|
||||
if name not in {"history_command", "history_command_seq"}
|
||||
}
|
||||
# Log only field names (not values) so remote edits are traceable
|
||||
# without recording arbitrary client-supplied payloads.
|
||||
self._log_debug(
|
||||
f"Applying web live settings: fields={sorted(settings)}, "
|
||||
f"history_command={history_command}."
|
||||
)
|
||||
self._suppress_live_settings_handler = True
|
||||
try:
|
||||
# processor_mode first: dual-sourced gpr_* fields route to the gpr or
|
||||
|
||||
@@ -218,7 +218,16 @@ class AppWindowConfigProfileIOMixin:
|
||||
self._show_exception("Failed to load config profile", exc)
|
||||
|
||||
def _apply_loaded_profile(self, profile: GuiProfileModel, profile_path: Path) -> None:
|
||||
"""Apply already parsed profile to GUI state without restarting the pipeline."""
|
||||
"""Apply an already parsed profile to GUI state without restarting the pipeline.
|
||||
|
||||
Repopulates every radar/processing/preprocess widget under signal blockers,
|
||||
resizes history buffers, and refreshes derived state. The pipeline is left
|
||||
untouched; callers handle user-facing logging and error reporting.
|
||||
"""
|
||||
self._log_debug(
|
||||
f"Applying loaded profile: path={profile_path}, "
|
||||
f"has_gui_state={profile.gui is not None}."
|
||||
)
|
||||
config = profile.run_config.clone()
|
||||
gui_state = profile.gui if profile.gui is not None else self._default_gui_state_for_config(config)
|
||||
self._defaults_config = config
|
||||
|
||||
@@ -422,6 +422,7 @@ class AppWindowConfigStateBuildersMixin:
|
||||
|
||||
config.runtime.settling_ms = int(self._settling_ms.text().strip())
|
||||
config.runtime.processing_live_config_path = str(self._live_config_writer.path)
|
||||
config.logging.level = self._log_level_combo.currentText().strip().lower()
|
||||
|
||||
if config.is_matrix_radar:
|
||||
if config.is_multi_device and len(config.radar.multi_device.slave_serials) != 2:
|
||||
|
||||
Reference in New Issue
Block a user