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
bfa15c9c0b
commit
3d7301bdbd
@ -0,0 +1,34 @@
|
|||||||
|
From 4ff7fe8f7f1c9208e524d875e60dad7bba9a48fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
|
||||||
|
Date: Wed, 1 Mar 2023 09:37:43 +0800
|
||||||
|
Subject: [PATCH] fix(kiran-biometrics): 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 612d5f8..745d1c2 100644
|
||||||
|
--- a/src/main.c
|
||||||
|
+++ b/src/main.c
|
||||||
|
@@ -43,7 +43,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!");
|
||||||
|
}
|
||||||
|
|
||||||
|
setlocale(LC_ALL, "");
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
||||||
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
Name: kiran-biometrics
|
Name: kiran-biometrics
|
||||||
Version: 0.0.3
|
Version: 0.0.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Kiran Desktop kiran-biometrics
|
Summary: Kiran Desktop kiran-biometrics
|
||||||
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-biometrics-Modify-the-log-information-leve.patch
|
||||||
|
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: dbus-glib-devel
|
BuildRequires: dbus-glib-devel
|
||||||
@ -86,6 +87,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
%{_includedir}/kiran-biometrics/kiran-biometrics-i.h
|
%{_includedir}/kiran-biometrics/kiran-biometrics-i.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 01 2023 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 0.0.3-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.3-1
|
* Thu Oct 27 2022 wangxiaoqing <wangxiaoqing@kylinsec.com.cn> - 0.0.3-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