Asyncio qemu fix and raise error if coroutine not used

This commit is contained in:
Julien Duponchelle committed 2015-10-12 17:06:50 +02:00
1 parent 5cb2b33a99
commit 91c2bd7e98
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -221,6 +221,9 @@ class Server:
ssl_context = self._create_ssl_context(server_config)
self._loop = asyncio.get_event_loop()
# Asyncio will raise error if coroutine is not called
self._loop.set_debug(True)
app = aiohttp.web.Application()
for method, route, handler in Route.get_routes():
log.debug("Adding route: {} {}".format(method, route))