diff --git a/moonraker/plugins/database.py b/moonraker/plugins/database.py index af0867c..5f0f90e 100644 --- a/moonraker/plugins/database.py +++ b/moonraker/plugins/database.py @@ -298,9 +298,10 @@ class MoonrakerDatabase: with self.lmdb_env.begin() as txn: for db_name, db in self.namespaces.items(): stats = txn.stat(db) - msg += f"\n{db_name}:" + msg += f"\n{db_name}:\n" msg += "\n".join([f"{k}: {v}" for k, v in stats.items()]) logging.info(f"Database statistics:\n{msg}") + self.lmdb_env.sync() self.lmdb_env.close() class NamespaceWrapper: