update logging placement

This commit is contained in:
Raphael Deem
2017-01-17 15:38:20 -08:00
parent 9108a4c69f
commit ba1e006585
3 changed files with 16 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ def test_log():
stream=log_stream
)
log = logging.getLogger()
app = Sanic('test_logging', logger=True)
app = Sanic('test_logging')
@app.route('/')
def handler(request):
log.info('hello world')