mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
Redirect errors to stderr
This commit is contained in:
parent
22100be856
commit
63973a94b8
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ function funcLog {
|
||||||
echo -e "`date +"%d.%m.%y %T"` ${logMsgTypes[$1]}\t$2" >> $logFile
|
echo -e "`date +"%d.%m.%y %T"` ${logMsgTypes[$1]}\t$2" >> $logFile
|
||||||
fi
|
fi
|
||||||
if [ $1 -le $echoLevel ]; then
|
if [ $1 -le $echoLevel ]; then
|
||||||
echo -e "${logMsgColor[$(($1))]}${logMsgTypes[$1]}:\t$2\033[37m"
|
if [ $1 -eq 1 ]; then # error
|
||||||
|
echo -e "${logMsgColor[$1]}${logMsgTypes[$1]}:\t$2\033[37m" >&2
|
||||||
|
else
|
||||||
|
echo -e "${logMsgColor[$1]}${logMsgTypes[$1]}:\t$2\033[37m"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue