mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-17 20:43:25 +00:00
Write info about uploaded files to log.
This commit is contained in:
parent
d4a6df487f
commit
42e2630d3e
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def _compose_data(params, files=None):
|
||||||
|
|
||||||
|
|
||||||
async def request(session, token, method, data=None, files=None):
|
async def request(session, token, method, data=None, files=None):
|
||||||
log.debug(f"Make request: '{method}' with data: {data or {}}")
|
log.debug(f"Make request: '{method}' with data: {data or {}} and files {files or {}}")
|
||||||
url = API_URL.format(token=token, method=method)
|
url = API_URL.format(token=token, method=method)
|
||||||
data = _compose_data(data, files)
|
data = _compose_data(data, files)
|
||||||
async with session.post(url, data=data) as response:
|
async with session.post(url, data=data) as response:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue