Enable logging for all output

pull/11/head
RandomNinjaAtk 4 years ago committed by GitHub
parent ebcebe947b
commit 772a40ac2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,8 +6,8 @@ TITLESHORT="VPP"
set -e
Configuration () {
log "############################################ SABnzbd Job: $1"
log "############################################ SABnzbd Category: $2"
log "############################################ SABnzbd Job: $jobname"
log "############################################ SABnzbd Category: $category"
log "############################################ DOCKER: $TITLE"
log "############################################ SCRIPT: Video Post Processor ($TITLESHORT)"
log "############################################ SCRIPT VERSION: 1.0.0"
@ -40,12 +40,15 @@ Configuration () {
log () {
m_time=`date "+%F %T"`
echo $m_time" "$1 | tee -a /config/scripts/logs/video-pp.log
chmod 666 /config/scripts/logs/video-pp.log
chown abc:abc /config/scripts/logs/video-pp.log
echo $m_time" "$1
}
Configuration "$3" "$5"
Main () {
folderpath="$1"
jobname="$3"
category="$5"
Configuration
if [ ${VIDEO_SMA} = TRUE ]; then
touch "$1/sma-conversion-check"
@ -362,5 +365,10 @@ if [ ${VIDEO_SMA} = TRUE ] || [ ${VIDEO_MKVCLEANER} = TRUE ]; then
rm "$1/sma-conversion-check"
fi
fi
}
Main "$@" | tee -a /config/scripts/logs/video-pp.log
chmod 666 /config/scripts/logs/video-pp.log
chown abc:abc /config/scripts/logs/video-pp.log
exit $?

Loading…
Cancel
Save