From 721e433b47b0bb999e42959de638b241a554ba08 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Thu, 18 Mar 2021 12:44:17 +0100 Subject: [PATCH] bashbot.rc: make log for hook configurable --- bashbot.rc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bashbot.rc b/bashbot.rc index e4cc717..f6fd38e 100755 --- a/bashbot.rc +++ b/bashbot.rc @@ -5,7 +5,7 @@ # # tested on: ubuntu, opensuse, debian # -#### $$VERSION$$ v1.51-dev-5-gf1ea494 +#### $$VERSION$$ v1.51-dev-6-gcbde841 # shellcheck disable=SC2009 # shellcheck disable=SC2181 # shellcheck disable=SC2250 @@ -46,6 +46,10 @@ webhook="cd ${bashbotdir}; nohup ${bashbotdir}/bin/process_batch.sh --startbot - # set additionl parameter, e.g. debug mode="" +# select logfile for webhook start stop and script errors +hooklog="DEBUG" +hooklog="WEBHOOK" + # END Configuration ####################### @@ -78,7 +82,7 @@ case "$1" in 'starthook') [ "${stat}" != "stop" ] && printf "Warning, bot is not stopped: %s\n" "${stat}" printf "Starting bashbot in webhook mode ... " - $runcmd "$webhook $mode >${bashbotdir}/logs/WEBHOOK.log &" # >/dev/null 2>&1 >${bashbotdir}/logs/${hooklog}.log &" # >/dev/null 2>&1