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,6 +1732,9 @@ class PhotoDB(
# CONFIG # CONFIG
self.config_filepath = self.data_directory.with_child(constants.DEFAULT_CONFIGNAME) self.config_filepath = self.data_directory.with_child(constants.DEFAULT_CONFIGNAME)
self.load_config() self.load_config()
if self.config['log_level'] is None:
self.log.setLevel(logging.NOTSET)
else:
self.log.setLevel(self.config['log_level']) self.log.setLevel(self.config['log_level'])
self.caches = { self.caches = {