代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/systemd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/core/manager.c b/src/core/manager.c
index 7b39479..1619f8c 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2937,11 +2937,11 @@ static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t
static int manager_dispatch_time_change_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
Manager *m = ASSERT_PTR(userdata);
Unit *u;
-
- log_struct(LOG_DEBUG,
- "MESSAGE_ID=" SD_MESSAGE_TIME_CHANGE_STR,
- LOG_MESSAGE("Time has been changed"));
-
+ 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.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。