Skip to content

Commit

Permalink
Change log messages (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tb1337 committed Dec 21, 2023
1 parent 9cd0b18 commit 35c8399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypaperless/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def request_json(
) -> dict[str, Any]:
"""Make a request to the api and parse response json to dict."""
async with self.generate_request(method, endpoint, **kwargs) as res:
self.logger.debug("Request %s (%d): %s", method.upper(), res.status, res.url)
self.logger.debug("Json-Request %s (%d): %s", method.upper(), res.status, res.url)

# bad request
if res.status == 400:
Expand All @@ -238,7 +238,7 @@ async def request_file(
) -> bytes:
"""Make a request to the api and return response as bytes."""
async with self.generate_request(method, endpoint, **kwargs) as res:
self.logger.debug("Download %s (%d): %s", method.upper(), res.status, res.url)
self.logger.debug("File-Request %s (%d): %s", method.upper(), res.status, res.url)

# bad request
if res.status == 400:
Expand Down

0 comments on commit 35c8399

Please sign in to comment.