a
This commit is contained in:
		
					parent
					
						
							
								5d8dfb2055
							
						
					
				
			
			
				commit
				
					
						495fce8782
					
				
			
		
					 3 changed files with 114 additions and 52 deletions
				
			
		
							
								
								
									
										20
									
								
								config.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								config.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
import logging
 | 
			
		||||
 | 
			
		||||
from etcd3_wrapper import Etcd3Wrapper
 | 
			
		||||
from decouple import config
 | 
			
		||||
 | 
			
		||||
BASE_PATH = config("BASE_DIR", "/var/www")
 | 
			
		||||
WITHOUT_CEPH = config("WITHOUT_CEPH", False)
 | 
			
		||||
ETCD_URL = config("ETCD_URL")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
logging.basicConfig(
 | 
			
		||||
    level=logging.DEBUG,
 | 
			
		||||
    filename="log.txt",
 | 
			
		||||
    filemode="a",
 | 
			
		||||
    format="%(asctime)s: %(levelname)s - %(message)s",
 | 
			
		||||
    datefmt="%d-%b-%y %H:%M:%S",
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
client = Etcd3Wrapper(host=ETCD_URL)
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue