Skip to content

Commit

Permalink
Error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil110399 committed Feb 9, 2024
1 parent 6d6e666 commit 6f25cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion images/datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NOWARNINGS="yes"

RUN apt-get update -y && \
apt-gesssst -qq install -y --no-install-recommends \
apt-gessst -qq install -y --no-install-recommends \
git \
curl \
rsync \
Expand Down
2 changes: 2 additions & 0 deletions scripts/docker_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def build(node: Node) -> Tuple[bool, str]:

if error_str:
logger.info("Here error occured")
logger.info(error_str)
raise docker_client.errors.BuildError(message="Failed to build Docker image", build_log=error_str)
if content_str:
# time each major step (Step 1/23 : xxx)
Expand All @@ -91,6 +92,7 @@ def build(node: Node) -> Tuple[bool, str]:
return True, report

except docker_client.errors.BuildError as build_e:
logger.info("In except")
logger.error(f"Error during build of {node.image_name},\n {build_e}")
return False, report
except docker_client.errors.APIError as api_e:
Expand Down

0 comments on commit 6f25cb9

Please sign in to comment.