Fix DBLOGNAME (".Db") diagnostics for database class instance
This commit is contained in:
parent
9ac5e3808d
commit
cd5fa5c1ff
@ -184,8 +184,15 @@ class DbState(Callback):
|
||||
self.save_modules()
|
||||
mod = pmgr.load_plugin(pdata)
|
||||
database = getattr(mod, pdata.databaseclass)
|
||||
_LOG.debug("make_database %s" % database)
|
||||
return database()
|
||||
db = database()
|
||||
import inspect
|
||||
caller_frame = inspect.stack()[1]
|
||||
_LOG.debug("Database class instance created Class:%s instance:%s. "
|
||||
"Called from File %s, line %s, in %s"
|
||||
% ((db.__class__.__name__, hex(id(db)))
|
||||
+ (os.path.split(caller_frame[1])[1],)
|
||||
+ tuple(caller_frame[i] for i in range(2, 4))))
|
||||
return db
|
||||
|
||||
def open_database(self, dbname, force_unlock=False, callback=None):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user