added logging to success/warn/fail
This commit is contained in:
parent
876da7521c
commit
d56848bc3f
1 changed files with 3 additions and 3 deletions
|
|
@ -377,7 +377,7 @@ subboxborder(){
|
||||||
success(){
|
success(){
|
||||||
_line="$@"
|
_line="$@"
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
boxborder "${scriptname} ${grn}SUCCESS${dfl} ${_line}"
|
logger boxborder "${scriptname} ${grn}SUCCESS${dfl} ${_line}"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -386,7 +386,7 @@ warn(){
|
||||||
_line="$@"
|
_line="$@"
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
boxtop
|
boxtop
|
||||||
boxline "${lrd}WARNING${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}"
|
logger boxline "${lrd}WARNING${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}"
|
||||||
boxbottom
|
boxbottom
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -395,7 +395,7 @@ fail(){
|
||||||
_line="$@"
|
_line="$@"
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
boxtop
|
boxtop
|
||||||
boxline "${lrd}FAILED${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}"
|
logger boxline "${lrd}FAILED${lyl}[${ong}code=${red}$ec${lyl}]: ${_line}${dfl}"
|
||||||
boxbottom
|
boxbottom
|
||||||
exit $ec
|
exit $ec
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue