Skip to content

Commit

Permalink
names adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jan 23, 2025
1 parent d61abc8 commit 965ad0b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions routes/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def proxy_name(idPatient):
try:
response = requests.get(
url,
headers={"Authorization": f"Bearer {token}"},
headers={
"Authorization": (
f"Bearer {token}" if getname_type == "auth" else token
)
},
params=params,
verify=False,
)
Expand Down Expand Up @@ -72,7 +76,8 @@ def proxy_name(idPatient):
logger.error(f"Service names ERROR: {response.status_code}")
logger.error(url)
logger.error(params)
logger.error(response)
logger.error(response.text)
logger.error(response.__dict__)
except Exception as e:
logging.basicConfig()
logger = logging.getLogger("noharm.backend")
Expand Down

0 comments on commit 965ad0b

Please sign in to comment.