chore: change migration logs

This commit is contained in:
LUIS NOVO 2025-06-09 20:44:57 -03:00
parent 24a359ecd3
commit bbd2f7dbfc

View file

@ -100,9 +100,10 @@ def setup_stream_state(current_notebook: Notebook) -> ChatSession:
def check_migration(): def check_migration():
if "migration_required" not in st.session_state: if "migration_required" not in st.session_state:
st.session_state["migration_required"] = None st.session_state["migration_required"] = None
logger.critical("Running migration check") logger.debug("Running migration check")
mm = MigrationManager() mm = MigrationManager()
if mm.needs_migration: if mm.needs_migration:
logger.critical("Migration required")
st.warning("The Open Notebook database needs a migration to run properly.") st.warning("The Open Notebook database needs a migration to run properly.")
if st.button("Run Migration"): if st.button("Run Migration"):
mm.run_migration_up() mm.run_migration_up()