dlt-hub / verified-sources

Contribute to dlt verified sources 🔥
https://dlthub.com/docs/walkthroughs/add-a-verified-source
Apache License 2.0
52 stars 40 forks source link

[REST] Detailed error handler logging #383

Closed willi-mueller closed 4 months ago

willi-mueller commented 4 months ago

Tell us what you do here

Relevant issue

issue #313

More PR info

Before:

2024-02-29 18:51:47,000|[INFO                 ]|5743|8123666432|dlt|client.py|make_request:62|Making GET request to https://testing.workable.com/spi/v3/candidate/138d8abe/offer with params={'limit': '100'}, json=None
2024-02-29 18:51:47,356|[INFO                 ]|5743|8123666432|dlt|client.py|paginate:120|Ignoring response and stopping pagination.

After:

2024-02-29 18:51:47,000|[INFO                 ]|5743|8123666432|dlt|client.py|make_request:62|Making GET request to https://testing.workable.com/spi/v3/candidate/138d8abe/offer with params={'limit': '100'}, json=None
2024-02-29 18:51:47,356|[INFO                 ]|5743|8123666432|dlt|client.py|paginate:120|Error 404. Ignoring response '{'result': 'NOT_FOUND', 'message': 'The requested resource is not found!'}' and stopping pagination.
burnash commented 4 months ago

Great stuff, thanks @willi-mueller!