From 1f7e299821e400aa2213ab670810455bf2267c8e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 1 Oct 2021 14:14:21 -0700 Subject: [PATCH] Add logging for loading / saving config file. --- etiquette/photodb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 5dc952f..e3a1b37 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -2034,6 +2034,7 @@ class PhotoDB( return new_id def load_config(self) -> None: + self.log.debug('Loading config file.') (config, needs_rewrite) = configlayers.load_file( filepath=self.config_filepath, default_config=constants.DEFAULT_CONFIGURATION, @@ -2044,5 +2045,6 @@ class PhotoDB( self.save_config() def save_config(self) -> None: + self.log.debug('Saving config file.') with self.config_filepath.open('w', encoding='utf-8') as handle: handle.write(json.dumps(self.config, indent=4, sort_keys=True))