Skip to content

Commit

Permalink
run_app: make print=None disable printing
Browse files Browse the repository at this point in the history
  • Loading branch information
seirl committed Sep 11, 2017
1 parent c7e8356 commit 771552f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiohttp/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ def run_app(app, *, host=None, port=None, path=None, sock=None,
app._set_loop(loop)
loop.run_until_complete(app.startup())

if print is None:
print = lambda *_: None

try:
make_handler_kwargs = dict()
if access_log_format is not None:
Expand Down

0 comments on commit 771552f

Please sign in to comment.