mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Script Refactoring
This commit is contained in:
parent
6639601155
commit
fd237285e4
@ -40,6 +40,7 @@ else
|
||||
fi
|
||||
|
||||
|
||||
print_listened_ports_by_binaries
|
||||
result=$(print_listened_ports_by_binaries)
|
||||
print_green_two_line "$result"
|
||||
|
||||
|
||||
|
||||
@ -267,6 +267,11 @@ function openim::log::print_blue() {
|
||||
}
|
||||
|
||||
|
||||
function openim::log::print_green_two_line() {
|
||||
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
||||
echo -e "[$current_time]"
|
||||
echo -e "\033[0;32m$1\033[0m"
|
||||
}
|
||||
|
||||
|
||||
function openim::log::print_red() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user