Skip to content

Commit

Permalink
improves debug slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
David Erb committed May 9, 2023
1 parent 6587115 commit 8d8df6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dls_normsql/aiosqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
)

# ----------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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()
Expand All @@ -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}"
)

# ----------------------------------------------------------------------------------------
Expand Down

0 comments on commit 8d8df6e

Please sign in to comment.