Compare commits
2 Commits
4d91a3f6ce
...
d9d0dcdbaf
Author | SHA1 | Date | |
---|---|---|---|
d9d0dcdbaf | |||
f18d2018e3 |
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
import json
|
||||
import logging
|
||||
|
||||
@ -69,6 +70,8 @@ def on_message(channel, method_frame, header_frame, body):
|
||||
|
||||
|
||||
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")
|
||||
mqtt = MQTT()
|
||||
mqtt.topic = config.MQTT_TOPIC
|
||||
|
Loading…
Reference in New Issue
Block a user