1 Star 0 Fork 101

YukariChiba/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
systemd-change-time-log-level.patch 951 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 7ca51ff9a4213025070f29c7814bba82984b90e7 Mon Sep 17 00:00:00 2001
From: yefei25 <yefei25@huawei.com>
Date: Tue, 19 Nov 2019 21:49:52 +0800
Subject: [PATCH] systemd: change time log level
Signed-off-by: yefei25 <yefei25@huawei.com>
---
src/core/manager.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/core/manager.c b/src/core/manager.c
index 32c340f..29eccd8 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2681,11 +2681,11 @@ static int manager_dispatch_time_change_fd(sd_event_source *source, int fd, uint
assert(m);
assert(m->time_change_fd == fd);
-
- log_struct(LOG_DEBUG,
+ if (getpid_cached() == 1) {
+ log_struct(LOG_INFO,
"MESSAGE_ID=" SD_MESSAGE_TIME_CHANGE_STR,
LOG_MESSAGE("Time has been changed"));
-
+ }
/* Restart the watch */
(void) manager_setup_time_change(m);
--
2.19.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YukariChiba/systemd.git
git@gitee.com:YukariChiba/systemd.git
YukariChiba
systemd
systemd
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385