Skip to content

Commit

Permalink
19608 Remove COLIN-API -- add debug info (#1561)
Browse files Browse the repository at this point in the history
* remove colin-api

* update version

* update auth parameters

* add logger debug message

* add debug
  • Loading branch information
eve-git authored Aug 14, 2024
1 parent 6974085 commit 2752507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/namex/resources/colin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def _init(colin_url):
)

if response.status_code != 200:
current_app.logger.debug(
'Error fetching data from URL: %s, Response: %d - %s',
colin_url, response.status_code, response.text
)
raise ColinServiceException(message="Failed to fetch data", status_code=response.status_code)
return response.json()
except ColinServiceException as err:
Expand Down

0 comments on commit 2752507

Please sign in to comment.