Some logging fixes

This commit is contained in:
deajan 2016-11-10 16:18:29 +01:00
parent a8892f88d0
commit 6075b92c91
1 changed files with 10 additions and 2 deletions

View File

@ -9,7 +9,7 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.1-dev
PROGRAM_BUILD=2016102303
PROGRAM_BUILD=2016111001
IS_STABLE=no
source "./ofunctions.sh"
@ -1688,8 +1688,16 @@ else
LOG_FILE="$LOGFILE"
fi
fi
if [ ! -w "$(dirname LOG_FILE)" ]; then
echo "Cannot write to log [$(dirname LOG_FILE)]."
else
Logger "Script begin, logging to [$LOG_FILE]." "DEBUG"
fi
if [ "$IS_STABLE" != "yes" ]; then
Logger "This is an unstable dev build. Please use with caution." "WARN"
Logger "This is an unstable dev build [$PROGRAM_BUILD]. Please use with caution." "WARN"
fi
DATE=$(date)