sedi-relay/relay/http_debug.py
2018-11-18 00:09:36 +00:00

13 lines
299 B
Python

import logging
import aiohttp
async def on_request_start(session, trace_config_ctx, params):
logging.debug("HTTP START [%r], [%r]", session, params)
def http_debug():
trace_config = aiohttp.TraceConfig()
trace_config.on_request_start.append(on_request_start)
return trace_config