import cgi
from Crypto.PublicKey import RSA
from .database import DATABASE
+from .http_debug import http_debug
# generate actor keys if not present
logging.debug('%r >> %r', inbox, message)
- async with aiohttp.ClientSession() as session:
+ async with aiohttp.ClientSession(trace_configs=[http_debug()]) as session:
async with session.post(inbox, data=data, headers=headers) as resp:
resp_payload = await resp.text()
logging.debug('%r >> resp %r', inbox, resp_payload)