From ef90f051b8d83531351e36471d2fcad781108f34 Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 3 May 2017 17:08:38 -0600 Subject: [PATCH] add log_level= kwarg to asyncio side --- autobahn/asyncio/wamp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autobahn/asyncio/wamp.py b/autobahn/asyncio/wamp.py index 8999309d..42b089e2 100644 --- a/autobahn/asyncio/wamp.py +++ b/autobahn/asyncio/wamp.py @@ -155,7 +155,7 @@ class ApplicationRunner(object): raise NotImplementedError() @public - def run(self, make, start_loop=True): + def run(self, make, start_loop=True, log_level='info'): """ Run the application component. Under the hood, this runs the event loop (unless `start_loop=False` is passed) so won't return @@ -256,7 +256,7 @@ class ApplicationRunner(object): (transport, protocol) = loop.run_until_complete(coro) # start logging - txaio.start_logging(level='info') + txaio.start_logging(level=log_level) try: loop.add_signal_handler(signal.SIGTERM, loop.stop)