Fixed wrong log function call in debug mode
This commit is contained in:
parent
93793ed7b4
commit
c2377fc2a5
|
@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
|
||||||
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
||||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=1.1-pre
|
PROGRAM_VERSION=1.1-pre
|
||||||
PROGRAM_BUILD=2015121601
|
PROGRAM_BUILD=2015122101
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
FUNC_BUILD=2015121503
|
FUNC_BUILD=2015121503
|
||||||
|
@ -928,7 +928,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with errors." "ERROR"
|
Logger "$PROGRAM finished with errors." "ERROR"
|
||||||
|
@ -939,7 +939,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with warnings." "WARN"
|
Logger "$PROGRAM finished with warnings." "WARN"
|
||||||
|
|
|
@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
|
||||||
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
||||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=1.1-pre
|
PROGRAM_VERSION=1.1-pre
|
||||||
PROGRAM_BUILD=2015121601
|
PROGRAM_BUILD=2015122101
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
source "./ofunctions.sh"
|
source "./ofunctions.sh"
|
||||||
|
@ -34,7 +34,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with errors." "ERROR"
|
Logger "$PROGRAM finished with errors." "ERROR"
|
||||||
|
@ -45,7 +45,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with warnings." "WARN"
|
Logger "$PROGRAM finished with warnings." "WARN"
|
||||||
|
|
6
osync.sh
6
osync.sh
|
@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
|
||||||
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
||||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=1.1-pre
|
PROGRAM_VERSION=1.1-pre
|
||||||
PROGRAM_BUILD=2015121601
|
PROGRAM_BUILD=2015122101
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
FUNC_BUILD=2015121503
|
FUNC_BUILD=2015121503
|
||||||
|
@ -827,7 +827,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with errors." "ERROR"
|
Logger "$PROGRAM finished with errors." "ERROR"
|
||||||
|
@ -838,7 +838,7 @@ function TrapQuit {
|
||||||
then
|
then
|
||||||
SendAlert
|
SendAlert
|
||||||
else
|
else
|
||||||
Log "Debug mode, no alert mail will be sent."
|
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||||
fi
|
fi
|
||||||
CleanUp
|
CleanUp
|
||||||
Logger "$PROGRAM finished with warnings." "WARN"
|
Logger "$PROGRAM finished with warnings." "WARN"
|
||||||
|
|
Loading…
Reference in New Issue