remote empty lines in output

This commit is contained in:
Jakobus Schürz 2021-12-03 09:00:40 +01:00
parent 391374c32f
commit d6d851e51c

View file

@ -60,6 +60,7 @@ function logerror(){
;; ;;
esac esac
local msg="$1" local msg="$1"
[ -z "${msg:+x}" ] && return 0
timeAndDate=`date` timeAndDate=`date`
local loglevels local loglevels
declare -a loglevels declare -a loglevels
@ -81,6 +82,7 @@ function logwarn(){
;; ;;
esac esac
local msg="$1" local msg="$1"
[ -z "${msg:+x}" ] && return 0
timeAndDate=`date` timeAndDate=`date`
local loglevels local loglevels
declare -a loglevels declare -a loglevels
@ -102,6 +104,7 @@ function loginfo(){
;; ;;
esac esac
local msg="$1" local msg="$1"
[ -z "${msg:+x}" ] && return 0
timeAndDate=`date` timeAndDate=`date`
local loglevels local loglevels
declare -a loglevels declare -a loglevels
@ -124,6 +127,7 @@ function logdebug(){
;; ;;
esac esac
local msg="$1" local msg="$1"
[ -z "${msg:+x}" ] && return 0
timeAndDate=`date` timeAndDate=`date`
local loglevels local loglevels
declare -a loglevels declare -a loglevels
@ -145,6 +149,7 @@ function logtrace(){
;; ;;
esac esac
local msg="$1" local msg="$1"
[ -z "${msg:+x}" ] && return 0
timeAndDate=`date` timeAndDate=`date`
local loglevels local loglevels
declare -a loglevels declare -a loglevels