Skip to content

Commit

Permalink
fix logging on runserver (#193)
Browse files Browse the repository at this point in the history
* fix logging on runserver

* uprev
  • Loading branch information
samuelcolvin authored Jun 6, 2018
1 parent 9d4831b commit ec1da74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
History
-------

0.10.1 (2018-06-06)
-------------------
* fix logging with ``runserver`` #193

0.10.0 (2018-05-29)
-------------------
* allow async app factories #185
Expand Down
2 changes: 2 additions & 0 deletions aiohttp_devtools/runserver/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ..exceptions import AiohttpDevException
from ..logs import rs_aux_logger as aux_logger
from ..logs import rs_dft_logger as dft_logger
from ..logs import setup_logging
from .config import Config
from .log_handlers import fmt_size

Expand Down Expand Up @@ -107,6 +108,7 @@ def set_tty(tty_path): # pragma: no cover

def serve_main_app(config: Config, tty_path: Optional[str]):
with set_tty(tty_path):
setup_logging(config.verbose)
loop = asyncio.get_event_loop()
runner = loop.run_until_complete(start_main_app(config, loop))
try:
Expand Down
2 changes: 1 addition & 1 deletion aiohttp_devtools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ['VERSION']

VERSION = StrictVersion('0.10.0')
VERSION = StrictVersion('0.10.1')

0 comments on commit ec1da74

Please sign in to comment.