FIX: add becho to send batch output to syslog too

becho stands for batch echo
formats the log line for syslog

Also logs audit summary into syslog (in batch mode only)
This commit is contained in:
Charles Herlin
2019-02-06 17:25:16 +01:00
parent 6cea326921
commit d014405e1f
3 changed files with 9 additions and 4 deletions

View File

@ -272,7 +272,7 @@ if [ $BATCH_MODE ]; then
else
BATCH_SUMMARY+=" CONFORMITY_PERCENTAGE:N.A" # No check runned, avoid division by 0
fi
echo $BATCH_SUMMARY
becho $BATCH_SUMMARY
else
printf "%40s\n" "################### SUMMARY ###################"
printf "%30s %s\n" "Total Available Checks :" "$TOTAL_CHECKS"