From 5749268fd623b5a85cbad0fd06565587d2a258ea Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 2 Apr 2024 16:09:31 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/bricks.sh | 2 +- scripts-new/check.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts-new/bricks.sh b/scripts-new/bricks.sh index 2feae3d89..8c325bd5b 100644 --- a/scripts-new/bricks.sh +++ b/scripts-new/bricks.sh @@ -3,7 +3,7 @@ OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/ source "${OPENIM_ROOT}/lib/util.sh" source "${OPENIM_ROOT}/define/binaries.sh" source "${OPENIM_ROOT}/lib/path.sh" - +source "${OPENIM_ROOT}/lib/logging.sh" #停止所有的二进制对应的进程 diff --git a/scripts-new/check.sh b/scripts-new/check.sh index a0b066e5a..128c5fe83 100644 --- a/scripts-new/check.sh +++ b/scripts-new/check.sh @@ -34,8 +34,8 @@ ret_val=$? if [ $ret_val -eq 0 ]; then echo "All services are running normally." else - echo "Some services are not running as expected. Details are as follows:" - echo "$result" + openim::log::error "Some services are not running as expected. Details are as follows:" + openim::log::error "$result" exit 1 fi