updated version number to 0.4.0-0

added API_FORCE for overriding API_URL
extensive logging is now disabled by default
This commit is contained in:
Joel Klimont 2022-02-12 13:16:26 +01:00
parent 34e68e2a9e
commit e7f0f95d66
5 changed files with 11 additions and 4 deletions

View file

@ -8,6 +8,13 @@ import requests
from compLib.LogstashLogging import Logging
API_URL = os.getenv("API_URL", "http://localhost:5000/") + "api/"
api_override = os.getenv("API_FORCE", "")
if api_override != "":
print(f"API_URL was set to {API_URL} but was overwritten with {api_override}")
API_URL = api_override
API_URL_GET_DELIVERY = API_URL + "getDelivery"
API_URL_GET_MATERIAL = API_URL + "getMaterial"
API_URL_GET_GARBAGE = API_URL + "getGarbage"