]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind-user: don't say "user X logged out" in user_finalize
authorMike Yuan <me@yhndnzj.com>
Wed, 24 Jan 2024 13:56:56 +0000 (21:56 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 25 Jan 2024 10:53:30 +0000 (18:53 +0800)
"Logging out" is something done by the human user. When we stop
tracking/GC a User object, let's use a more generic phrase in case
the specific User doesn't have human users (i.e. "user" class sessions)
at all. Eventually we want something like #2900, and log this
when all user class sessions log out and we're lingering again I think.

src/login/logind-user.c

index 01709a2747ef13d0416aa3cef39273a1a7abeea1..1372fb503321c8b3a6227231e5ee1b2a06c53e4c 100644 (file)
@@ -553,7 +553,7 @@ int user_finalize(User *u) {
          * done. This is called as a result of an earlier user_done() when all jobs are completed. */
 
         if (u->started)
-                log_debug("User %s logged out.", u->user_record->user_name);
+                log_debug("User %s exited.", u->user_record->user_name);
 
         LIST_FOREACH(sessions_by_user, s, u->sessions)
                 RET_GATHER(r, session_finalize(s));