Compare commits
No commits in common. "035c7cfabb7c42a1795b1ae6c79211b1484e97b5" and "abc7c279f8671094d8b43c3ee556637ed20e0f17" have entirely different histories.
035c7cfabb
...
abc7c279f8
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
### Get Logwatch detail level (default to 0)
|
### Get Logwatch detail level
|
||||||
my $detailLevel = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
|
my $detailLevel = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
|
||||||
|
|
||||||
|
|
||||||
|
@ -97,11 +97,8 @@ function quit {
|
|||||||
echo -e "${warn}${scriptName} generated the following warnings:" \
|
echo -e "${warn}${scriptName} generated the following warnings:" \
|
||||||
"${normal}" >> "$logFile"
|
"${normal}" >> "$logFile"
|
||||||
for warnCode in "${exitWarn[@]}"; do
|
for warnCode in "${exitWarn[@]}"; do
|
||||||
warnStamp="${warnCode%%_*}"
|
echo -e "${warn}-- [WARNING] ${warningExplain[$warnCode]}" \
|
||||||
warnValue="${warnCode##*_}"
|
"(code: ${warnCode}) --${normal}" >> "$logFile"
|
||||||
echo -e "${warn}${warnStamp} -- [WARNING]" \
|
|
||||||
"${warningExplain[$warnValue]} (code: ${warnValue}) --" \
|
|
||||||
"${normal}" >> "$logFile"
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ -z "${exitError}" ]; then
|
if [ -z "${exitError}" ]; then
|
||||||
@ -114,10 +111,8 @@ function quit {
|
|||||||
echo -e "${err}${scriptName} generated the following errors:" \
|
echo -e "${err}${scriptName} generated the following errors:" \
|
||||||
"${normal}" >> "$logFile"
|
"${normal}" >> "$logFile"
|
||||||
for errCode in "${exitError[@]}"; do
|
for errCode in "${exitError[@]}"; do
|
||||||
errStamp="${errCode%%_*}"
|
echo -e "${err}-- [ERROR] ${errorExplain[$errCode]}" \
|
||||||
errValue="${errCode##*_}"
|
"(code: ${errCode}) --$normal" >> "$logFile"
|
||||||
echo -e "${err}${errStamp}-- [ERROR] ${errorExplain[$errValue]}" \
|
|
||||||
"(code: ${errValue}) --${normal}" >> "$logFile"
|
|
||||||
done
|
done
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user