naccyde / rpms / systemd

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