database: log lmdb versions

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-12-28 05:50:03 -05:00
parent c226e9c1e4
commit 5c5e91cb3d
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ class MoonrakerDatabase:
# Track unsafe shutdowns
unsafe_shutdowns: int = self.get_item(
"moonraker", "database.unsafe_shutdowns", 0).result()
msg = f"Unsafe Shutdown Count: {unsafe_shutdowns}"
msg = f"\nDatabase Versions: pylmdb = {lmdb.__version__},"
msg += f" lmdb = {lmdb.version()}"
msg += f"\nUnsafe Shutdown Count: {unsafe_shutdowns}"
self.server.add_log_rollover_item("database", msg)
# Increment unsafe shutdown counter. This will be reset if