forked from ungleich-public/cdist
		
	Fix log var assignment.
This commit is contained in:
		
					parent
					
						
							
								3db987b913
							
						
					
				
			
			
				commit
				
					
						0d734c872d
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -124,6 +124,9 @@ class Config(object): | ||||||
|     def commandline(cls, args): |     def commandline(cls, args): | ||||||
|         """Configure remote system""" |         """Configure remote system""" | ||||||
| 
 | 
 | ||||||
|  |         # FIXME: Refactor relict - remove later | ||||||
|  |         log = logging.getLogger("cdist") | ||||||
|  | 
 | ||||||
|         # No new child process if only one host at a time. |         # No new child process if only one host at a time. | ||||||
|         if args.parallel == 1: |         if args.parallel == 1: | ||||||
|             log.debug("Only 1 parallel process, doing it sequentially") |             log.debug("Only 1 parallel process, doing it sequentially") | ||||||
|  | @ -134,6 +137,7 @@ class Config(object): | ||||||
|             del logging.getLogger().handlers[:] |             del logging.getLogger().handlers[:] | ||||||
|             log_format = '%(levelname)s: [%(process)d]: %(message)s' |             log_format = '%(levelname)s: [%(process)d]: %(message)s' | ||||||
|             logging.basicConfig(format=log_format) |             logging.basicConfig(format=log_format) | ||||||
|  |             log = logging.getLogger("cdist") | ||||||
| 
 | 
 | ||||||
|         if args.parallel: |         if args.parallel: | ||||||
|             import signal |             import signal | ||||||
|  | @ -141,9 +145,6 @@ class Config(object): | ||||||
|             signal.signal(signal.SIGTERM, mp_sig_handler) |             signal.signal(signal.SIGTERM, mp_sig_handler) | ||||||
|             signal.signal(signal.SIGHUP, mp_sig_handler) |             signal.signal(signal.SIGHUP, mp_sig_handler) | ||||||
| 
 | 
 | ||||||
|         # FIXME: Refactor relict - remove later |  | ||||||
|         log = logging.getLogger("cdist") |  | ||||||
| 
 |  | ||||||
|         cls._check_and_prepare_args(args) |         cls._check_and_prepare_args(args) | ||||||
| 
 | 
 | ||||||
|         failed_hosts = [] |         failed_hosts = [] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue