log paths
This commit is contained in:
parent
8263c0f78b
commit
a88203e98f
@ -2,6 +2,7 @@ import os
|
|||||||
import socket
|
import socket
|
||||||
from os import environ
|
from os import environ
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import logging
|
||||||
|
|
||||||
from sanic import Sanic, HTTPResponse
|
from sanic import Sanic, HTTPResponse
|
||||||
from sanic.request import Request
|
from sanic.request import Request
|
||||||
@ -24,6 +25,8 @@ j2env = get_j2env(DEBUG)
|
|||||||
|
|
||||||
@app.get(r'/<path:.*/?>')
|
@app.get(r'/<path:.*/?>')
|
||||||
async def index(request: Request, path=''):
|
async def index(request: Request, path=''):
|
||||||
|
logging.warning(path)
|
||||||
|
|
||||||
path = path.replace('%20', ' ')
|
path = path.replace('%20', ' ')
|
||||||
domain = request.host
|
domain = request.host
|
||||||
query = f'?{request.query_string}' if request.query_string else ''
|
query = f'?{request.query_string}' if request.query_string else ''
|
||||||
|
Loading…
Reference in New Issue
Block a user