]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: add one more debug log
authorLuca Boccassi <bluca@debian.org>
Mon, 20 May 2024 12:08:56 +0000 (13:08 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 20 May 2024 12:14:50 +0000 (13:14 +0100)
Helped track down issue with session tracking

src/login/logind-dbus.c

index 53e966562e6c41115a6089d03bbc00e8b67e71fa..70fc9aeebf3a5f3fbdbc1721fada92a3955c68f7 100644 (file)
@@ -907,7 +907,10 @@ static int create_session(
         /* Check if we are already in a logind session, and if so refuse. */
         r = manager_get_session_by_pidref(m, &leader, /* ret_session= */ NULL);
         if (r < 0)
-                return r;
+                return log_debug_errno(
+                                r,
+                                "Failed to check if process " PID_FMT " is already in a session: %m",
+                                leader.pid);
         if (r > 0)
                 return sd_bus_error_setf(error, BUS_ERROR_SESSION_BUSY,
                                          "Already running in a session or user slice");