Also log commits without user-given messages.
This commit is contained in:
parent
28b4c8626b
commit
9381c2c9c7
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue