Log when closing sql connections.

This commit is contained in:
voussoir 2022-11-07 17:55:25 -08:00
parent 7657ab79f1
commit 628f18e0db
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -249,9 +249,11 @@ class Database(metaclass=abc.ABCMeta):
if self._worms_transaction_owner:
self.rollback()
log.loud('Closing sql_read.')
self.sql_read.close()
del self.sql_read
log.loud('Closing sql_write.')
self.sql_write.close()
del self.sql_write