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
a7658e6389
commit
2fe30518e0
@ -256,10 +256,12 @@ function openim::log::test_log() {
|
|||||||
|
|
||||||
function openim::log::print_blue() {
|
function openim::log::print_blue() {
|
||||||
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
local current_time=$(date "+%Y-%m-%d %H:%M:%S %Z")
|
||||||
echo -e "\033[0;36m[$current_time] $1\033[0m"
|
echo -e "[$current_time]"
|
||||||
|
echo -e "\033[0;34m$1\033[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
openim::log::colorless() {
|
openim::log::colorless() {
|
||||||
local V="${V:-0}"
|
local V="${V:-0}"
|
||||||
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
if [[ ${OPENIM_VERBOSE} < ${V} ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user