mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-31 23:48:08 +08:00
Optimizing scripts
This commit is contained in:
parent
a1d5bdfaa5
commit
84d3b69ae0
@ -210,14 +210,9 @@ openim::log::status() {
|
|||||||
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timestamp=$(date +"[%Y-%m-%d %H:%M:%S %Z]")
|
timestamp=$(date +"[%Y-%m-%d %H:%M:%S %Z]")
|
||||||
echo_log "${timestamp} ${1}"
|
echo_log "${timestamp} ${1}"
|
||||||
shift
|
echo_log -e "${COLOR_BLUE} ${1} ==> ${COLOR_BLUE}$@${reset_color}"
|
||||||
for message; do
|
|
||||||
local reset_color='\033[0m'
|
|
||||||
echo_log -e "${COLOR_BLUE} ${message} ==> ${COLOR_BLUE}$@${reset_color}"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user