some updates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-10 16:15:20 +02:00
parent e6afdd5bac
commit c26aa1be43
2 changed files with 28 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env python3
import os
import sys
import logging
"""
@@ -32,3 +34,9 @@ MQTT_TOPIC = os.getenv("GUARD_MQTT_TOPIC", "guard-service")
INPUT_HOSTNAME = os.getenv("INPUT_SVC_HOSTNAME", "input-service")
INPUT_TIMEOUT = int(os.environ.get("INPUT_SVC_TIMEOUT", 5))
TRIGGER_LEVEL = float(os.environ.get("TRIGGER_LEVEL", 0.51))
LOG_LEVEL = logging.DEBUG if (
'--debug' in sys.argv
) or (
os.environ.get('DEBUG', '0').lower() in ['yes', 'true', '1']
) else logging.INFO