Let config.log_level None -> setLevel(NOTSET).

master
voussoir 2020-09-27 10:45:07 -07:00
parent 17f694cfed
commit a2fc49b6e7
1 changed files with 4 additions and 1 deletions

View File

@ -1732,7 +1732,10 @@ class PhotoDB(
# CONFIG
self.config_filepath = self.data_directory.with_child(constants.DEFAULT_CONFIGNAME)
self.load_config()
self.log.setLevel(self.config['log_level'])
if self.config['log_level'] is None:
self.log.setLevel(logging.NOTSET)
else:
self.log.setLevel(self.config['log_level'])
self.caches = {
'album': cacheclass.Cache(maxlen=self.config['cache_size']['album']),