Let config.log_level None -> setLevel(NOTSET).
This commit is contained in:
parent
17f694cfed
commit
a2fc49b6e7
1 changed files with 4 additions and 1 deletions
|
@ -1732,7 +1732,10 @@ 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()
|
||||||
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 = {
|
self.caches = {
|
||||||
'album': cacheclass.Cache(maxlen=self.config['cache_size']['album']),
|
'album': cacheclass.Cache(maxlen=self.config['cache_size']['album']),
|
||||||
|
|
Loading…
Reference in a new issue