mirror of
https://github.com/deajan/osync
synced 2024-11-05 12:01:02 +00:00
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"
|
||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||
PROGRAM_VERSION=1.1-pre
|
||||
PROGRAM_BUILD=2015121601
|
||||
PROGRAM_BUILD=2015122101
|
||||
IS_STABLE=no
|
||||
|
||||
FUNC_BUILD=2015121503
|
||||
@ -928,7 +928,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
Logger "$PROGRAM finished with errors." "ERROR"
|
||||
@ -939,7 +939,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
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"
|
||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||
PROGRAM_VERSION=1.1-pre
|
||||
PROGRAM_BUILD=2015121601
|
||||
PROGRAM_BUILD=2015122101
|
||||
IS_STABLE=no
|
||||
|
||||
source "./ofunctions.sh"
|
||||
@ -34,7 +34,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
Logger "$PROGRAM finished with errors." "ERROR"
|
||||
@ -45,7 +45,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
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"
|
||||
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
|
||||
PROGRAM_VERSION=1.1-pre
|
||||
PROGRAM_BUILD=2015121601
|
||||
PROGRAM_BUILD=2015122101
|
||||
IS_STABLE=no
|
||||
|
||||
FUNC_BUILD=2015121503
|
||||
@ -827,7 +827,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
Logger "$PROGRAM finished with errors." "ERROR"
|
||||
@ -838,7 +838,7 @@ function TrapQuit {
|
||||
then
|
||||
SendAlert
|
||||
else
|
||||
Log "Debug mode, no alert mail will be sent."
|
||||
Logger "Debug mode, no alert mail will be sent." "NOTICE"
|
||||
fi
|
||||
CleanUp
|
||||
Logger "$PROGRAM finished with warnings." "WARN"
|
||||
|
Loading…
Reference in New Issue
Block a user