From d0671d81b5c91fa97534165e6b25f509633a63ca Mon Sep 17 00:00:00 2001 From: fritz-hh Date: Fri, 29 Nov 2013 10:33:46 +0100 Subject: [PATCH] New log level added (LOG_WARN) --- src/config.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/config.sh b/src/config.sh index 71b4f1f4..0c41e691 100644 --- a/src/config.sh +++ b/src/config.sh @@ -1,15 +1,21 @@ TOOLNAME="OCRmyPDF" VERSION="v2.x" -EXIT_BAD_ARGS="1" # possible exit codes +# possible exit codes +EXIT_BAD_ARGS="1" EXIT_BAD_INPUT_FILE="2" EXIT_MISSING_DEPENDENCY="3" EXIT_INVALID_OUPUT_PDFA="4" EXIT_OTHER_ERROR="5" -LOG_ERR="0" # 0=only error messages -LOG_INFO="1" # 1=error messages and some infos -LOG_DEBUG="2" # 2=debug level logging + +# possible log levels +LOG_ERR="0" # only error messages +LOG_WARN="1" # error messages and warnings +LOG_INFO="2" # error messages, warnings and some infos +LOG_DEBUG="3" # debug level logging SRC="./src" # location of the source folder (except source of external tools like jhove) + +# various paths OCR_PAGE="$SRC/ocrPage.sh" # path to the script aimed at OCRing one page JHOVE="./jhove/bin/JhoveApp.jar" # java SW for validating the final PDF/A JHOVE_CFG="./jhove/conf/jhove.conf" # location of the jhove config file