Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 verbose logging #123

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading