mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	test_l3_longevity.py : add set log level.
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		
				
					committed by
					
						
						shivam
					
				
			
			
				
	
			
			
			
						parent
						
							cbbea15f72
						
					
				
				
					commit
					72cc1e54fa
				
			@@ -2879,6 +2879,11 @@ Setting wifi_settings per radio
 | 
			
		||||
    parser.add_argument('--no_cleanup', help='Do not cleanup before exit',
 | 
			
		||||
                        action='store_true')
 | 
			
		||||
 | 
			
		||||
    parser.add_argument('--log_level',
 | 
			
		||||
                              default=None,
 | 
			
		||||
                              help='Set logging level: debug | info | warning | error | critical')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # logging configuration
 | 
			
		||||
    parser.add_argument(
 | 
			
		||||
        "--lf_logger_config_json",
 | 
			
		||||
@@ -2888,6 +2893,10 @@ Setting wifi_settings per radio
 | 
			
		||||
 | 
			
		||||
    # set up logger
 | 
			
		||||
    logger_config = lf_logger_config.lf_logger_config()
 | 
			
		||||
 | 
			
		||||
    if (args.log_level):
 | 
			
		||||
        logger_config.set_level(level=args.log_level)
 | 
			
		||||
        
 | 
			
		||||
    if args.lf_logger_config_json:
 | 
			
		||||
        logger_config.lf_logger_config_json = args.lf_logger_config_json
 | 
			
		||||
        logger_config.load_lf_logger_config()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user