From b35f59fed44b9f21c996568fd5a1b0c51e870276 Mon Sep 17 00:00:00 2001 From: wangxiaoqing Date: Wed, 1 Mar 2023 11:04:35 +0800 Subject: [PATCH] Modify the log information level of zlog initialization failure to debug Signed-off-by: wangxiaoqing --- ...tication-service-Modify-the-log-info.patch | 33 +++++++++++++++++++ kiran-authentication-service.spec | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0001-fix-kiran-authentication-service-Modify-the-log-info.patch diff --git a/0001-fix-kiran-authentication-service-Modify-the-log-info.patch b/0001-fix-kiran-authentication-service-Modify-the-log-info.patch new file mode 100644 index 0000000..93eda45 --- /dev/null +++ b/0001-fix-kiran-authentication-service-Modify-the-log-info.patch @@ -0,0 +1,33 @@ +From 1016fc08d59a344b922ebdf522ea5ac147676280 Mon Sep 17 00:00:00 2001 +From: wangxiaoqing +Date: Wed, 1 Mar 2023 11:00:52 +0800 +Subject: [PATCH] fix(kiran-authentication-service): Modify the log information + level of zlog initialization failure to debug +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +- 修改zlog初始化失败的日志信息级别为debug + Closes #I6IFYZ + +Signed-off-by: wangxiaoqing +--- + src/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main.c b/src/main.c +index 9527572..14114d8 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) + if (dzlog_init("/etc/zlog.conf", "kylinsec-system") < 0) + #endif + { +- g_warning("zlog init failed!"); ++ g_debug("zlog init failed!"); + } + + #if !GLIB_CHECK_VERSION(2, 36, 0) +-- +2.36.1 + diff --git a/kiran-authentication-service.spec b/kiran-authentication-service.spec index e2ac3c7..f1f5fdc 100644 --- a/kiran-authentication-service.spec +++ b/kiran-authentication-service.spec @@ -2,12 +2,13 @@ Name: kiran-authentication-service Version: 0.0.2 -Release: 1 +Release: 2 Summary: Kiran Desktop kiran authentication service License: MulanPSL-2.0 URL: http://www.kylinsec.com.cn Source0: %{name}-%{version}.tar.gz +Patch0: 0001-fix-kiran-authentication-service-Modify-the-log-info.patch BuildRequires: glib2-devel %if 0%{?on_openeuler} @@ -64,6 +65,9 @@ make install DESTDIR=$RPM_BUILD_ROOT %{_libdir}/libkiran-authentication-service.so %changelog +* Wed Mar 01 2023 wangxiaoqing - 0.0.2-2 +- KYOS-B: Modify the log information level of zlog initialization failure to debug. + * Thu Oct 27 2022 wangxiaoqing - 0.0.2-1 - KYOS-B: Do not exit when zlog init failed. -- Gitee