Compare commits
No commits in common. "d9d0dcdbaf947e45e7137212585fe4b493158ac2" and "4d91a3f6cea9337f1571e486c7aca0aff7399889" have entirely different histories.
d9d0dcdbaf
...
4d91a3f6ce
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -70,8 +69,6 @@ def on_message(channel, method_frame, header_frame, body):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
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)
|
|
||||||
logging.info("Guard service starting")
|
logging.info("Guard service starting")
|
||||||
mqtt = MQTT()
|
mqtt = MQTT()
|
||||||
mqtt.topic = config.MQTT_TOPIC
|
mqtt.topic = config.MQTT_TOPIC
|
||||||
|
Loading…
Reference in New Issue
Block a user