From f806eeb5fb730a24bcdebb521ce7fbadf7a49044 Mon Sep 17 00:00:00 2001 From: Sockenklaus Date: Wed, 13 Dec 2023 01:36:11 +0100 Subject: [PATCH] streamlined logging a little bit more. --- kill-chrome.sh | 0 parser.py | 2 +- run.sh | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) mode change 100755 => 100644 kill-chrome.sh mode change 100755 => 100644 parser.py diff --git a/kill-chrome.sh b/kill-chrome.sh old mode 100755 new mode 100644 diff --git a/parser.py b/parser.py old mode 100755 new mode 100644 index f54cd48..9721637 --- a/parser.py +++ b/parser.py @@ -199,7 +199,7 @@ def main(): set = load_settings() log = logging.getLogger() log.setLevel(set['loglevel']) -log_format = logging.Formatter('[dw-parser] %(asctime)s - %(levelname)s: %(message)s') +log_format = logging.Formatter('%(asctime)s - %(levelname)s: %(message)s') # handler_stdout = logging.StreamHandler(stream="/proc/1/fd/1") # handler_stdout.setLevel(set['loglevel']) diff --git a/run.sh b/run.sh index 96e4636..85801c4 100644 --- a/run.sh +++ b/run.sh @@ -1,12 +1,16 @@ #!/bin/bash +echo "DW Parser Docker Container started!" > /proc/1/fd/1 + if ! test -f "/app/conf/crontab"; then cp "/app/init/crontab" "/app/conf/crontab" + echo "Crontab not found... Initialized..." > /proc/1/fd/1 fi crontab "/app/conf/crontab" if ! test -f "/app/conf/conf.json"; then cp "/app/init/conf.json" "/app/conf/conf.json" + echo "Conf.json not found... Initialized..." > /proc/1/fd/1 fi cron -f \ No newline at end of file