Log when closing the objects.db
This commit is contained in:
parent
765c999dfb
commit
addf75814e
|
@ -1,5 +1,6 @@
|
||||||
"""Inventory implementation using sqlite"""
|
"""Inventory implementation using sqlite"""
|
||||||
|
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import time
|
import time
|
||||||
|
@ -144,4 +145,5 @@ class Inventory():
|
||||||
return cur.fetchone()[0]
|
return cur.fetchone()[0]
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
logging.warning('Closing the objects database')
|
||||||
self._db.close()
|
self._db.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user