Skip to content

Commit

Permalink
Merge pull request #12 from tansey-lab/jw_pip_package
Browse files Browse the repository at this point in the history
added line break in api_schema json logging for readability
  • Loading branch information
jessicaw9910 authored Aug 16, 2024
2 parents 4cbd3ac + f94be26 commit 568031c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nf_rnaseq/api_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def query_api(self):

self.check_response(response)
if self.check_if_job_ready():
logger.info(f"\n{self.identifier}\n{self.json}")
logger.info(f"\n{self.identifier}\n{self.json}\n")
else:
try:
self.json = response.json()
logger.info(f"{self.identifier}\n{self.json}")
logger.info(f"\n{self.identifier}\n{self.json}\n")
except requests.exceptions.JSONDecodeError as e:
logging.error("Error at %s", "division", exc_info=e)
self.text = response.text
logger.info(f"{self.identifier}\n{self.text}")
logger.info(f"\n{self.identifier}\n{self.text}\n")

@abstractmethod
def create_query_url(self):
Expand Down

0 comments on commit 568031c

Please sign in to comment.