Explorar el Código

Log request body

master
JustAnotherArchivist hace 4 años
padre
commit
4d0a4c8c8e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      http2irc.py

+ 1
- 1
http2irc.py Ver fichero

@@ -652,7 +652,7 @@ class WebServer:
self._configChanged.clear() self._configChanged.clear()


async def post(self, request): async def post(self, request):
self.logger.info(f'Received request {id(request)} from {request.remote!r} for {request.path!r}')
self.logger.info(f'Received request {id(request)} from {request.remote!r} for {request.path!r} with body {(await request.read())!r}')
try: try:
channel, auth, module, moduleargs = self._paths[request.path] channel, auth, module, moduleargs = self._paths[request.path]
except KeyError: except KeyError:


Cargando…
Cancelar
Guardar