From e982858c28335b11528c52af181abd1bbc71673f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 21 Dec 2021 16:57:08 -0800 Subject: [PATCH] Add a log.debug when connecting to sqlite file. --- etiquette/photodb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 6afcf42..ae5f3c6 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1612,6 +1612,7 @@ class PhotoDB( raise FileNotFoundError(msg) self.data_directory.makedirs(exist_ok=True) + log.debug('Connecting to sqlite file "%s".', self.database_filepath.absolute_path) self.sql = sqlite3.connect(self.database_filepath.absolute_path) if existing_database: @@ -1647,13 +1648,13 @@ class PhotoDB( path = parent path = possible + log.debug('Found closest PhotoDB at "%s".', path.absolute_path) photodb = cls( data_directory=path, create=False, *args, **kwargs, ) - log.debug('Found closest PhotoDB at %s.', path) return photodb def __del__(self):