From 18feafd25decd6c986ab731c7fe23cc027b78406 Mon Sep 17 00:00:00 2001 From: Timmy Huang Date: Mon, 23 Dec 2024 10:47:38 -0800 Subject: [PATCH] more logs --- server/common/rest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/common/rest.py b/server/common/rest.py index 824c15f79..ddca184b6 100644 --- a/server/common/rest.py +++ b/server/common/rest.py @@ -293,10 +293,12 @@ def gene_info_get(request): """ api_base_url = current_app.app_config.server__gene_info__api_base headers = {"Content-Type": "application/json", "Accept": "application/json"} + url = f"{api_base_url}/gene_info?geneID={request.args['geneID']}&gene={request.args['gene']}" + + current_app.logger.info(f"👀👀👀👀 Requesting gene info from {url}") + try: - response = requests.get( - url=f"{api_base_url}/gene_info?geneID={request.args['geneID']}&gene={request.args['gene']}", headers=headers - ) + response = requests.get(url=url, headers=headers) if response.status_code == 200: # DEBUG # DEBUG @@ -310,7 +312,7 @@ def gene_info_get(request): # DEBUG # DEBUG # DEBUG - current_app.logger.error(f"Error: Received status code {response.status_code} from API") + current_app.logger.error(f"Error:☠️☠️☠️☠️☠️☠️ Received status code {response.status_code} from API") current_app.logger.error(f"Response content: {response.text}") return None except Exception as e: