forked from ungleich-public/cdist
		
	Define better warning facility.
This commit is contained in:
		
					parent
					
						
							
								01ca5910ec
							
						
					
				
			
			
				commit
				
					
						c63ab44c9c
					
				
			
		
					 6 changed files with 68 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -80,10 +80,7 @@ if __name__ == "__main__":
 | 
			
		|||
        import os
 | 
			
		||||
        import re
 | 
			
		||||
        import cdist
 | 
			
		||||
        import cdist.log
 | 
			
		||||
 | 
			
		||||
        logging.setLoggerClass(cdist.log.Log)
 | 
			
		||||
        logging.basicConfig(format='%(levelname)s: %(message)s')
 | 
			
		||||
        log = logging.getLogger("cdist")
 | 
			
		||||
 | 
			
		||||
        if re.match("__", os.path.basename(sys.argv[0])):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue