dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
ac3a84
From 0687c94b36c59b77f0e64137aadd2094f77cb9c3 Mon Sep 17 00:00:00 2001
ac3a84
From: David Tardon <dtardon@redhat.com>
ac3a84
Date: Tue, 21 Feb 2023 10:41:47 +0100
ac3a84
Subject: [PATCH] logind-session: make stopping of idle session visible to
ac3a84
 admins
ac3a84
ac3a84
(cherry picked from commit 6269ffe7ee8a659df7336a2582054ecd9eecf4b1)
ac3a84
ac3a84
Resolves: #2172401
ac3a84
---
ac3a84
 src/login/logind-session.c | 2 +-
ac3a84
 1 file changed, 1 insertion(+), 1 deletion(-)
ac3a84
ac3a84
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
ac3a84
index 5bd4abc474..709a585013 100644
ac3a84
--- a/src/login/logind-session.c
ac3a84
+++ b/src/login/logind-session.c
ac3a84
@@ -711,7 +711,7 @@ static int session_dispatch_stop_on_idle(sd_event_source *source, uint64_t t, vo
ac3a84
 
ac3a84
         idle = session_get_idle_hint(s, &ts);
ac3a84
         if (idle) {
ac3a84
-                log_debug("Session \"%s\" of user \"%s\" is idle, stopping.", s->id, s->user->user_record->user_name);
ac3a84
+                log_info("Session \"%s\" of user \"%s\" is idle, stopping.", s->id, s->user->user_record->user_name);
ac3a84
 
ac3a84
                 return session_stop(s, /* force */ true);
ac3a84
         }