mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 10:02:55 +00:00 
			
		
		
		
	Implement loglevel configuration from Dockerfile
This commit is contained in:
		@@ -12,3 +12,4 @@ SUPERVISOR_HTTP_URI = 'http://localhost:{}'.format(SUPERVISOR_HTTP_PORT)
 | 
			
		||||
 | 
			
		||||
LOGIN_APP_DIR = os.getenv('TFW_LOGIN_APP_DIR')
 | 
			
		||||
TERMINADO_DIR = os.getenv('TFW_TERMINADO_DIR')
 | 
			
		||||
LOGLEVEL = os.getenv('TFW_LOGLEVEL').upper()
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
import logging
 | 
			
		||||
 | 
			
		||||
logging.getLogger().setLevel(logging.DEBUG)
 | 
			
		||||
from config import LOGLEVEL
 | 
			
		||||
 | 
			
		||||
# TODO: configure supervisord loglevel from here
 | 
			
		||||
 | 
			
		||||
logging.getLogger().setLevel(LOGLEVEL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user