Better MQTT logging and asyncio debug on

Better MQTT logging and asyncio debug on
This commit is contained in:
Brian Martin 2019-05-18 08:35:08 -04:00
parent 58919e1cbb
commit d238ded6c1
3 changed files with 21 additions and 5 deletions

View file

@ -5,6 +5,8 @@ import bumper
import sys, socket
import time
import platform
import os
os.environ['PYTHONASYNCIODEBUG'] = '1'
import asyncio
@ -57,6 +59,7 @@ def main():
loop = asyncio.new_event_loop()
# Start web servers
loop.set_debug(True)
conf_server.confserver_app()
conf_server_2.confserver_app()
asyncio.ensure_future(conf_server.start_server(),loop=loop)
@ -73,6 +76,7 @@ def main():
loop.run_forever()
# start xmpp server on port 5223 (sync)
#xmpp_server.run(run_async=True) # Start in new thread