Skip to content

Commit 8819ad2

Browse files
committed
Improve log messages
1 parent ec5a458 commit 8819ad2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/alembic/env.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ async def a_migrate_fixtures(bind_name: str, Session: async_sessionmaker[AsyncSe
102102
signature = calculate_md5(f"{fixtures_path}/{module_name}.py")
103103
if fixture_migration:
104104
if signature != fixture_migration.signature:
105-
logging.warning(f"Signature mismatch for {fixture_migration.filename} fixture. The file has been modified after being processed.")
106-
logging.debug(f"{module_name} fixtures already migrated for {bind_name}")
105+
logging.warning(f"Signature mismatch for {fixture_migration.filename} fixture."
106+
f" The file has been already processed but has been modified since then."
107+
f" It will not be processed again.")
108+
else:
109+
logging.debug(f"{module_name} fixtures already processed for {bind_name}")
107110
continue
108111

109112
session.add_all(m.fixtures().get(bind_name, []))

0 commit comments

Comments
 (0)