From 8d8df6e3d9d12bafd52e9d93406bb7d2856b02ee Mon Sep 17 00:00:00 2001 From: David Erb Date: Tue, 9 May 2023 13:36:16 +0100 Subject: [PATCH] improves debug slightly --- src/dls_normsql/aiosqlite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dls_normsql/aiosqlite.py b/src/dls_normsql/aiosqlite.py index 381a3c4..aff9a3c 100644 --- a/src/dls_normsql/aiosqlite.py +++ b/src/dls_normsql/aiosqlite.py @@ -118,7 +118,7 @@ async def connect(self): # Emit the name of the database file for positive confirmation on console. logger.info( - f"{callsign(self)} database file is {self.__filename} revision {self.LATEST_REVISION}" + f"{callsign(self)} database file is {self.__filename} code revision {self.LATEST_REVISION}" ) # ---------------------------------------------------------------------------------------- @@ -148,7 +148,7 @@ async def apply_revisions(self): if old_revision < self.LATEST_REVISION: # Backup before applying revisions. logger.debug( - f"[BKREVL] backing up before updating to revision {self.LATEST_REVISION}" + f"[BKREVL] backing up before updating from revision {old_revision} to revision {self.LATEST_REVISION}" ) await self.backup() @@ -164,8 +164,8 @@ async def apply_revisions(self): ) else: logger.debug( - f"[BKREVL] no need to update old revision {old_revision}" - f" which matches latest revision {self.LATEST_REVISION}" + f"[BKREVL] no need to update persistent revision {old_revision}" + f" which matches code revision {self.LATEST_REVISION}" ) # ----------------------------------------------------------------------------------------