Modify the log information level of zlog initialization failure to debug
Signed-off-by: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
This commit is contained in:
parent
aba22b446c
commit
b35f59fed4
@ -0,0 +1,33 @@
|
|||||||
|
From 1016fc08d59a344b922ebdf522ea5ac147676280 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
|
||||||
|
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 <wangxiaoqing@kylinsec.com.cn>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
||||||
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
Name: kiran-authentication-service
|
Name: kiran-authentication-service
|
||||||
Version: 0.0.2
|
Version: 0.0.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Kiran Desktop kiran authentication service
|
Summary: Kiran Desktop kiran authentication service
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
URL: http://www.kylinsec.com.cn
|
URL: http://www.kylinsec.com.cn
|
||||||
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch0: 0001-fix-kiran-authentication-service-Modify-the-log-info.patch
|
||||||
|
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
%if 0%{?on_openeuler}
|
%if 0%{?on_openeuler}
|
||||||
@ -64,6 +65,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
%{_libdir}/libkiran-authentication-service.so
|
%{_libdir}/libkiran-authentication-service.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 01 2023 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 0.0.2-2
|
||||||
|
- KYOS-B: Modify the log information level of zlog initialization failure to debug.
|
||||||
|
|
||||||
* Thu Oct 27 2022 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 0.0.2-1
|
* Thu Oct 27 2022 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 0.0.2-1
|
||||||
- KYOS-B: Do not exit when zlog init failed.
|
- KYOS-B: Do not exit when zlog init failed.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user