Log when closing the objects.db
This commit is contained in:
parent
765c999dfb
commit
addf75814e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user