mirror of
				https://github.com/craigerl/aprsd.git
				synced 2025-11-03 13:10:31 -05:00 
			
		
		
		
	Added LOG_LEVEL env variable for the docker
This commit is contained in:
		
							parent
							
								
									5e50792e80
								
							
						
					
					
						commit
						7aaa002a0e
					
				@ -13,6 +13,12 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then
 | 
			
		||||
    done
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z "${LOG_LEVEL}" ] || [[ ! "${LOG_LEVEL}" =~ ^(CRITICAL|ERROR|WARNING|INFO)$ ]]; then
 | 
			
		||||
    LOG_LEVEL="DEBUG"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "Log level is set to ${LOG_LEVEL}";
 | 
			
		||||
 | 
			
		||||
# check to see if there is a config file
 | 
			
		||||
APRSD_CONFIG="/config/aprsd.yml"
 | 
			
		||||
if [ ! -e "$APRSD_CONFIG" ]; then
 | 
			
		||||
@ -20,4 +26,4 @@ if [ ! -e "$APRSD_CONFIG" ]; then
 | 
			
		||||
    aprsd sample-config > $APRSD_CONFIG
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exec aprsd server -c $APRSD_CONFIG --loglevel DEBUG
 | 
			
		||||
exec aprsd server -c $APRSD_CONFIG --loglevel ${LOG_LEVEL}
 | 
			
		||||
 | 
			
		||||
@ -9,3 +9,4 @@ services:
 | 
			
		||||
    environment:
 | 
			
		||||
        - TZ=America/New_York
 | 
			
		||||
        - APRS_PLUGINS=aprsd-slack-plugin>=1.0.2
 | 
			
		||||
        - LOG_LEVEL=ERROR
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user