From 902f32cb95ab027d5a670df4bd8e20a2a3dc8abf Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Mon, 24 Aug 2020 19:35:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Move=20one-liner=20ocrd=5Floggin?= =?UTF-8?q?g.py=20to=20an=20echo=20statement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-core | 2 +- ocrd_logging.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 ocrd_logging.py diff --git a/Dockerfile-core b/Dockerfile-core index 2b3c8c6..da4a850 100644 --- a/Dockerfile-core +++ b/Dockerfile-core @@ -22,7 +22,7 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \ # Set up OCR-D logging -COPY ocrd_logging.py /etc/ +RUN echo "setOverrideLogLevel(os.getenv('LOG_LEVEL', 'INFO'))" >/etc/ocrd_logging.py # Install pip (and setuptools) diff --git a/ocrd_logging.py b/ocrd_logging.py deleted file mode 100644 index a380b99..0000000 --- a/ocrd_logging.py +++ /dev/null @@ -1 +0,0 @@ -setOverrideLogLevel(os.getenv('LOG_LEVEL', 'INFO'))