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