Skip to content

Commit

Permalink
暂时回滚异步调用trace装饰器 (#670)
Browse files Browse the repository at this point in the history
Co-authored-by: yinjiaqi <[email protected]>
  • Loading branch information
C9luster and yinjiaqi authored Dec 20, 2024
1 parent 9a95c5e commit b7b41fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/core/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,18 @@ async def build_curl(self, method, url, data=None, json_data=None, **kwargs) ->

return curl

@session_post
async def post(self, url, data=None, json=None, **kwargs):
logger.debug("Curl Command:\n" + await self.build_curl(hdrs.METH_POST, url, data=data, json_data=json, **kwargs) + "\n")
return await super().post(url=url, data=data, json=json, **kwargs)

@session_post
async def delete(self, url, **kwargs):
logger.debug("Curl Command:\n" + await self.build_curl(hdrs.METH_DELETE, url, **kwargs) + "\n")
return await super().delete(url=url, **kwargs)

@session_post
async def get(self, url, **kwargs):
logger.debug("Curl Command:\n" + await self.build_curl(hdrs.METH_GET, url, **kwargs) + "\n")
return await super().get(url=url, **kwargs)

@session_post
async def put(self, url, data=None, **kwargs):
logger.debug("Curl Command:\n" + await self.build_curl(hdrs.METH_PUT, url, data=data, **kwargs) + "\n")
return await super().put(url=url, data=data, **kwargs)

0 comments on commit b7b41fc

Please sign in to comment.