Log when closing the objects.db

This commit is contained in:
Lee Miller 2024-09-11 02:22:56 +03:00
parent 765c999dfb
commit addf75814e
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -1,5 +1,6 @@
"""Inventory implementation using sqlite"""
import logging
import os
import sqlite3
import time
@ -144,4 +145,5 @@ class Inventory():
return cur.fetchone()[0]
def __del__(self):
logging.warning('Closing the objects database')
self._db.close()