sedi-relay/relay/http_debug.py

13 lines
299 B
Python
Raw Normal View History

2018-11-18 00:07:36 +00:00
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