update logging placement
This commit is contained in:
@@ -14,7 +14,7 @@ logging.basicConfig(
|
||||
log = logging.getLogger()
|
||||
|
||||
# Set logger to override default basicConfig
|
||||
sanic = Sanic(logger=True)
|
||||
sanic = Sanic()
|
||||
@sanic.route("/")
|
||||
def test(request):
|
||||
log.info("received request; responding with 'hey'")
|
||||
|
||||
Reference in New Issue
Block a user