Skip to content

Commit

Permalink
🐛 verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed May 20, 2024
1 parent af16d47 commit 534b13f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lunchable/models/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from __future__ import annotations

import logging
from functools import cached_property
from typing import (
Any,
Expand All @@ -22,8 +21,6 @@
from lunchable._config import APIConfig
from lunchable.exceptions import LunchMoneyHTTPError

logger = logging.getLogger(__name__)


class LunchMoneyClient(Client):
"""
Expand Down Expand Up @@ -268,8 +265,6 @@ def process_response(cls, response: httpx.Response) -> Any:
try:
response.raise_for_status()
except httpx.HTTPError as he:
logger.exception(he)
logger.error(response.text)
raise LunchMoneyHTTPError(response.text) from he
if response.content:
returned_data = response.json()
Expand All @@ -282,7 +277,6 @@ def process_response(cls, response: httpx.Response) -> Any:
errors = returned_data["error"]
except KeyError:
errors = returned_data["errors"]
logger.exception(errors)
raise LunchMoneyHTTPError(errors)
return returned_data

Expand Down

0 comments on commit 534b13f

Please sign in to comment.