mirror of
				https://github.com/craigerl/aprsd.git
				synced 2025-11-04 05:30:27 -05:00 
			
		
		
		
	Fixed access to conf.log in logging_setup
This commit is contained in:
		
							parent
							
								
									71cd7e0ab5
								
							
						
					
					
						commit
						c1acdc2510
					
				@ -4,6 +4,7 @@ CHANGES
 | 
				
			|||||||
v3.3.2
 | 
					v3.3.2
 | 
				
			||||||
------
 | 
					------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Changelog for 3.3.2
 | 
				
			||||||
* Remove warning during sample-config
 | 
					* Remove warning during sample-config
 | 
				
			||||||
* Removed print in utils
 | 
					* Removed print in utils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@ import sys
 | 
				
			|||||||
from loguru import logger
 | 
					from loguru import logger
 | 
				
			||||||
from oslo_config import cfg
 | 
					from oslo_config import cfg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from aprsd import conf
 | 
					from aprsd.conf import log as conf_log
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CONF = cfg.CONF
 | 
					CONF = cfg.CONF
 | 
				
			||||||
@ -38,7 +38,7 @@ def setup_logging(loglevel=None, quiet=False):
 | 
				
			|||||||
    if not loglevel:
 | 
					    if not loglevel:
 | 
				
			||||||
        log_level = CONF.logging.log_level
 | 
					        log_level = CONF.logging.log_level
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        log_level = conf.log.LOG_LEVELS[loglevel]
 | 
					        log_level = conf_log.LOG_LEVELS[loglevel]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # intercept everything at the root logger
 | 
					    # intercept everything at the root logger
 | 
				
			||||||
    logging.root.handlers = [InterceptHandler()]
 | 
					    logging.root.handlers = [InterceptHandler()]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user