From 126ad8cdaf92052d1e2633a91193fe89d7e9221a Mon Sep 17 00:00:00 2001 From: Roby Date: Thu, 22 Oct 2026 13:21:19 +0200 Subject: [PATCH] add update logging --- app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index 21af8a5..70bff8c 100644 --- a/app.py +++ b/app.py @@ -1297,6 +1297,11 @@ def check_server_update(): remote_hash = subprocess.check_output(['git', 'rev-parse', '@{u}'], cwd=BASE_DIR).decode('utf-8').strip() update_available = local_hash != remote_hash + + # --- LOG DI DEBUG --- + logger.info(f"🔍 Controllo OTA: Local={local_hash[:7]} | Remote={remote_hash[:7]} | Update={update_available}") + # -------------------- + return jsonify({"success": True, "update_available": update_available}) except Exception as e: logger.error(f"Errore controllo aggiornamenti server: {e}")