From 84d3b69ae09a3f4b5eb56fcbc8e3b868b82b4b67 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 21 Mar 2024 14:34:16 +0800 Subject: [PATCH] Optimizing scripts --- scripts/lib/logging.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/lib/logging.sh b/scripts/lib/logging.sh index 5617b8baf..c18fc4e42 100755 --- a/scripts/lib/logging.sh +++ b/scripts/lib/logging.sh @@ -210,14 +210,9 @@ openim::log::status() { if [[ ${OPENIM_VERBOSE} < ${V} ]]; then return fi - timestamp=$(date +"[%Y-%m-%d %H:%M:%S %Z]") echo_log "${timestamp} ${1}" - shift - for message; do - local reset_color='\033[0m' - echo_log -e "${COLOR_BLUE} ${message} ==> ${COLOR_BLUE}$@${reset_color}" - done + echo_log -e "${COLOR_BLUE} ${1} ==> ${COLOR_BLUE}$@${reset_color}" }