From 7d454a03ac549b3cb1c96ed1ed0fcd0b064f9dda Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 15 Nov 2020 22:03:45 -0800 Subject: [PATCH] Incorporate __name__ into photodb's logger. --- etiquette/photodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 019b68c..931ec6f 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1760,7 +1760,7 @@ class PhotoDB( raise exceptions.BadDataDirectory(self.data_directory.absolute_path) # 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) # DATABASE