Incorporate __name__ into photodb's logger.

This commit is contained in:
voussoir 2020-11-15 22:03:45 -08:00
parent 9e6f8041fb
commit 7d454a03ac

View file

@ -1760,7 +1760,7 @@ class PhotoDB(
raise exceptions.BadDataDirectory(self.data_directory.absolute_path) raise exceptions.BadDataDirectory(self.data_directory.absolute_path)
# LOGGING # LOGGING
self.log = vlogging.getLogger('etiquette:%s' % self.data_directory.absolute_path) self.log = vlogging.getLogger(f'{__name__}:{self.data_directory.absolute_path}')
self.log.setLevel(log_level) self.log.setLevel(log_level)
# DATABASE # DATABASE