From addf75814e058263f3ae2d678a4a6dd9d8b5ae30 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 11 Sep 2024 02:22:56 +0300 Subject: [PATCH] Log when closing the objects.db --- minode/sql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minode/sql.py b/minode/sql.py index 092881e..00bdd0d 100644 --- a/minode/sql.py +++ b/minode/sql.py @@ -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()