remote empty lines in output
This commit is contained in:
parent
391374c32f
commit
d6d851e51c
1 changed files with 5 additions and 0 deletions
5
logging
5
logging
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue