3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

DataStore: log the name of the current database implementation to DEBUG

This commit is contained in:
James Lu 2016-11-09 22:56:38 -08:00
parent b94e11930e
commit c077f9aebb

View File

@ -35,6 +35,7 @@ class DataStore:
self.filename = filename self.filename = filename
self.tmp_filename = filename + '.tmp' self.tmp_filename = filename + '.tmp'
log.debug('(DataStore:%s) using implementation %s', self.name, self.__class__.__name__)
log.debug('(DataStore:%s) database path set to %s', self.name, self.filename) log.debug('(DataStore:%s) database path set to %s', self.name, self.filename)
self.save_frequency = save_frequency or conf.conf['bot'].get('save_delay', 300) self.save_frequency = save_frequency or conf.conf['bot'].get('save_delay', 300)