Fixed logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-09-30 04:40:54 +02:00
parent 5aff5e242b
commit 1292666b66

View File

@ -8,6 +8,7 @@ from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver
from actuator import Loudspeaker
import paho.mqtt.client
import json
import sys
"""
Main Entrypoint
@ -72,6 +73,8 @@ def main() -> None:
Main function
:return:
"""
logging.basicConfig(stream=sys.stdout, format="%(asctime)s - %(name)s [%(levelname)s]: %(message)s",
level=logging.DEBUG if '--debug' in sys.argv else logging.INFO)
BirbnetesIoTPlatformStatusDriver.init()
listofabcsignaprocessors = (SoundSignalProcessor())
loopingtimer = LoopingTimer(function=timer_tick, args=[listofabcsignaprocessors], interval=config.TICK_INTERVAL)