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}")