From 1190aba4b7cfd13195d2755f9a54be038afe8233 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 21 Oct 2022 07:53:16 -0400 Subject: [PATCH] machine: add logging to validation init Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index 93dc505..452fd78 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -1217,11 +1217,15 @@ class InstallValidator: install_ver: int = await db.get_item( "moonraker", "validate_install.install_version", 0 ) - if INSTALL_VERSION <= install_ver and not self.force_validation: - logging.debug("Installation version in database up to date") - self.validation_enabled = False - else: + if install_ver < INSTALL_VERSION: + logging.info("Validation version in database out of date") self.validation_enabled = True + else: + msg = "Installation version in database up to date" + if self.force_validation: + msg += ", force is enabled" + logging.info(msg) + self.validation_enabled = self.force_validation async def perform_validation(self) -> bool: db: MoonrakerDatabase = self.server.lookup_component("database")