From 9381c2c9c76c553fef17cdcd2ac6675b31c52caf Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 21 Dec 2021 17:02:26 -0800 Subject: [PATCH] Also log commits without user-given messages. --- voussoirkit/worms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voussoirkit/worms.py b/voussoirkit/worms.py index 8111d7a..0b90e6b 100644 --- a/voussoirkit/worms.py +++ b/voussoirkit/worms.py @@ -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: