Fixed RemoteLogger prefix

This commit is contained in:
deajan 2016-12-13 18:31:06 +01:00
parent 69568e8132
commit caccb04c06
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#### OFUNCTIONS MINI SUBSET #### #### OFUNCTIONS MINI SUBSET ####
_OFUNCTIONS_VERSION=2.1-dev _OFUNCTIONS_VERSION=2.1-dev
_OFUNCTIONS_BUILD=2016121303 _OFUNCTIONS_BUILD=2016121304
#### _OFUNCTIONS_BOOTSTRAP SUBSET #### #### _OFUNCTIONS_BOOTSTRAP SUBSET ####
_OFUNCTIONS_BOOTSTRAP=true _OFUNCTIONS_BOOTSTRAP=true
#### _OFUNCTIONS_BOOTSTRAP SUBSET END #### #### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
@ -143,11 +143,11 @@ function RemoteLogger {
local retval="${3:-undef}" # optional return value of command local retval="${3:-undef}" # optional return value of command
if [ "$_LOGGER_PREFIX" == "time" ]; then if [ "$_LOGGER_PREFIX" == "time" ]; then
prefix="Remote TIME: $SECONDS - " prefix="RTIME: $SECONDS - "
elif [ "$_LOGGER_PREFIX" == "date" ]; then elif [ "$_LOGGER_PREFIX" == "date" ]; then
prefix="R $(date) - " prefix="R $(date) - "
else else
prefix="RTIME - $SECONDS " prefix=""
fi fi
if [ "$level" == "CRITICAL" ]; then if [ "$level" == "CRITICAL" ]; then