From 15e48feea90cfa939aa966df35be50badfd3902d Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Sat, 3 Aug 2024 13:38:25 +0200 Subject: [PATCH] Update UpdaterState messages and reposition log entry Reorder cloudlog.info entry for SIGUSR1, ensuring parameter update messages are set before logging. Also, make minor capitalization adjustments to UpdaterState messages for consistency. --- system/updated/updated.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/updated/updated.py b/system/updated/updated.py index 1b645763f1..a417d69160 100755 --- a/system/updated/updated.py +++ b/system/updated/updated.py @@ -54,8 +54,8 @@ class WaitTimeHelper: self.ready_event.set() def check_now(self, signum: int, frame) -> None: - cloudlog.info("caught SIGUSR1, checking for updates") params.put("UpdaterState", "Initializing updater to start check...") + cloudlog.info("caught SIGUSR1, checking for updates") self.user_request = UserRequest.CHECK self.ready_event.set() @@ -416,10 +416,11 @@ class Updater: # TODO: show agnos download progress if AGNOS: + self.params.put("UpdaterState", "Checking AGNOS update...") handle_agnos_update() # Create the finalized, ready-to-swap update - self.params.put("UpdaterState", "finalizing update...") + self.params.put("UpdaterState", "Finalizing update...") finalize_update() cloudlog.info("finalize success!")