Skip to content

Commit 8d8df6e

Browse files
author
David Erb
committed
improves debug slightly
1 parent 6587115 commit 8d8df6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/dls_normsql/aiosqlite.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def connect(self):
118118

119119
# Emit the name of the database file for positive confirmation on console.
120120
logger.info(
121-
f"{callsign(self)} database file is {self.__filename} revision {self.LATEST_REVISION}"
121+
f"{callsign(self)} database file is {self.__filename} code revision {self.LATEST_REVISION}"
122122
)
123123

124124
# ----------------------------------------------------------------------------------------
@@ -148,7 +148,7 @@ async def apply_revisions(self):
148148
if old_revision < self.LATEST_REVISION:
149149
# Backup before applying revisions.
150150
logger.debug(
151-
f"[BKREVL] backing up before updating to revision {self.LATEST_REVISION}"
151+
f"[BKREVL] backing up before updating from revision {old_revision} to revision {self.LATEST_REVISION}"
152152
)
153153

154154
await self.backup()
@@ -164,8 +164,8 @@ async def apply_revisions(self):
164164
)
165165
else:
166166
logger.debug(
167-
f"[BKREVL] no need to update old revision {old_revision}"
168-
f" which matches latest revision {self.LATEST_REVISION}"
167+
f"[BKREVL] no need to update persistent revision {old_revision}"
168+
f" which matches code revision {self.LATEST_REVISION}"
169169
)
170170

171171
# ----------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)