From 6f25cb902d87bd583e4fb40a6293d07fba2efac7 Mon Sep 17 00:00:00 2001 From: swapnil sinha Date: Fri, 9 Feb 2024 09:56:53 -0800 Subject: [PATCH] Error logging --- images/datascience-notebook/Dockerfile | 2 +- scripts/docker_adapter.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/images/datascience-notebook/Dockerfile b/images/datascience-notebook/Dockerfile index dcfa0402..ca59c613 100644 --- a/images/datascience-notebook/Dockerfile +++ b/images/datascience-notebook/Dockerfile @@ -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 \ diff --git a/scripts/docker_adapter.py b/scripts/docker_adapter.py index be30d881..5ac563d6 100644 --- a/scripts/docker_adapter.py +++ b/scripts/docker_adapter.py @@ -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) @@ -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: