Skip to content

Commit

Permalink
Merge pull request #391 from bento-platform/drs-err-logging
Browse files Browse the repository at this point in the history
DRS fetch error logging
  • Loading branch information
davidlougheed committed Apr 4, 2023
2 parents 6187c0d + 3e227a2 commit a70388d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion chord_metadata_service/chord/ingest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from typing import Any, Callable

from chord_metadata_service.logger import logger
from .exceptions import IngestError

__all__ = [
Expand Down Expand Up @@ -58,7 +59,9 @@ def workflow_http_download(tmp_dir: str, http_uri: str) -> str:
r = requests.get(http_uri)

if not r.ok:
raise IngestError(f"HTTP error encountered while downloading ingestion URI: {http_uri}")
err = f"HTTP error encountered while downloading ingestion URI: {http_uri}"
logger.error(f"{err} (Status: {r.status_code}; Contents: {r.content.decode('utf-8')})")
raise IngestError(err)

data_path = f"{tmp_dir}ingest_download_data"

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "chord_metadata_service" # can be renamed to katsu if inner module directory is renamed too
version = "2.18.1"
version = "2.18.2"
description = "An implementation of a clin/pheno metadata store for the Bento platform."
authors = [
"Ksenia Zaytseva",
Expand Down Expand Up @@ -34,7 +34,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
bento-lib = {version = "6.0.0", extras = ["django"]}
bento-lib = {extras = ["django"], version = "^6.0.1"}
Django = "^4.1.7"
django-autocomplete-light = "^3.9.4"
django-cors-headers = "^3.13.0"
Expand Down

0 comments on commit a70388d

Please sign in to comment.