Also log commits without user-given messages.

This commit is contained in:
voussoir 2021-12-21 17:02:26 -08:00
parent 28b4c8626b
commit 9381c2c9c7
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -105,7 +105,9 @@ class Database(metaclass=abc.ABCMeta):
self.sql.close()
def commit(self, message=None) -> None:
if message is not None:
if message is None:
log.debug('Committing.')
else:
log.debug('Committing - %s.', message)
while len(self.on_commit_queue) > 0: