From 2fe30518e0c9db93c4863975e006d82d870fbd2f Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 2 Apr 2024 16:44:48 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/lib/logging.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts-new/lib/logging.sh b/scripts-new/lib/logging.sh index c0ee9cef1..f6f7b7e34 100644 --- a/scripts-new/lib/logging.sh +++ b/scripts-new/lib/logging.sh @@ -256,10 +256,12 @@ function openim::log::test_log() { function openim::log::print_blue() { 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() { local V="${V:-0}" if [[ ${OPENIM_VERBOSE} < ${V} ]]; then