From f94be26f81db4f49434571ce0796effac10eedbb Mon Sep 17 00:00:00 2001 From: jessicaw9910 Date: Fri, 16 Aug 2024 16:28:14 -0400 Subject: [PATCH] added line break in api_schema json logging for readability --- src/nf_rnaseq/api_schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nf_rnaseq/api_schema.py b/src/nf_rnaseq/api_schema.py index 839f30f..5f2b518 100644 --- a/src/nf_rnaseq/api_schema.py +++ b/src/nf_rnaseq/api_schema.py @@ -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):