diff --git a/src/jsonrpc/backend/aiohttp.py b/src/jsonrpc/backend/aiohttp.py index d1d820b..f39db66 100644 --- a/src/jsonrpc/backend/aiohttp.py +++ b/src/jsonrpc/backend/aiohttp.py @@ -1,6 +1,7 @@ __author__ = 'RemiZOffAlex' __email__ = 'remizoffalex@mail.ru' +import json import jinja2 import logging import pathlib @@ -38,8 +39,14 @@ class APIHandler: async def post(self, request) -> Response: try: + if self.debug: + print(request) json_data = await request.json() + if self.debug: + print(json_data) result = self.jsonrpc(json_data) + if self.debug: + print(result) body = json.dumps(result, cls=JSONRPCEncoder) response = Response( text=body,