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

@ -34,7 +34,7 @@ fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefi
-d "python3-pigpio" \
-d "python3-numpy" \
-d "ffmpeg" \
-v 0.3.9-0 -t deb setup.py
-v 0.4.0-0 -t deb setup.py
# --deb-changelog changelog \
# --deb-upstream-changelog changelog \

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"

View file

@ -6,7 +6,7 @@ import requests
from logstash_async.transport import HttpTransport
from logstash_async.handler import AsynchronousLogstashHandler
EXTENSIVE_LOGGING = os.getenv("EXTENSIVE_LOGGING", "True")
EXTENSIVE_LOGGING = os.getenv("EXTENSIVE_LOGGING", "False")
if EXTENSIVE_LOGGING == "True":
EXTENSIVE_LOGGING = True

View file

@ -1,4 +1,4 @@
__version__ = "0.3.9-0"
__version__ = "0.4.0-0"
import importlib
import compLib.LogstashLogging

View file

@ -12,7 +12,7 @@ else:
setuptools.setup(
name="complib",
version="0.3.9-0",
version="0.4.0-0",
author="F-WuTs",
author_email="--",
description="",