Incorporate __name__ into ycdldb's logger.

This commit is contained in:
voussoir 2020-11-15 22:02:21 -08:00
parent b659a6da5f
commit 3f32ab1664

View file

@ -485,7 +485,7 @@ class YCDLDB(
raise exceptions.BadDataDirectory(self.data_directory.absolute_path) raise exceptions.BadDataDirectory(self.data_directory.absolute_path)
# LOGGING # LOGGING
self.log = vlogging.getLogger('ycdl:%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)
self.youtube.log.setLevel(log_level) self.youtube.log.setLevel(log_level)