Blame SOURCES/0001-trivial-Downgrade-a-trivial-warning-to-a-debug-state.patch

8e18b6
From b8e397e3e14b958970b7b1917590e971b2573729 Mon Sep 17 00:00:00 2001
8e18b6
From: Richard Hughes <richard@hughsie.com>
8e18b6
Date: Tue, 13 Aug 2019 10:59:52 +0100
8e18b6
Subject: [PATCH] trivial: Downgrade a trivial warning to a debug statement
8e18b6
8e18b6
This avoids spamming logs if system seats are set up incorrectly. If the user
8e18b6
is using virtual desktops it's highly unlikely they want the session devices
8e18b6
managed by colord.
8e18b6
---
8e18b6
 src/cd-main.c | 12 ++++++------
8e18b6
 1 file changed, 6 insertions(+), 6 deletions(-)
8e18b6
8e18b6
diff --git a/src/cd-main.c b/src/cd-main.c
8e18b6
index ee475f8..268d5b2 100644
8e18b6
--- a/src/cd-main.c
8e18b6
+++ b/src/cd-main.c
8e18b6
@@ -532,17 +532,17 @@ cd_main_get_seat_for_process (guint pid)
8e18b6
 
8e18b6
 	/* get session the process belongs to */
8e18b6
 	rc = sd_pid_get_session (pid, &sd_session);
8e18b6
-	if (rc != 0) {
8e18b6
-		g_warning ("failed to get session [pid %u]: %s",
8e18b6
-			   pid, strerror (-rc));
8e18b6
+	if (rc < 0) {
8e18b6
+		g_debug ("failed to get session [pid %u]: %s",
8e18b6
+			 pid, strerror (-rc));
8e18b6
 		goto out;
8e18b6
 	}
8e18b6
 
8e18b6
 	/* get the seat the session is on */
8e18b6
 	rc = sd_session_get_seat (sd_session, &sd_seat);
8e18b6
-	if (rc != 0) {
8e18b6
-		g_warning ("failed to get seat for session %s [pid %u]: %s",
8e18b6
-			   sd_session, pid, strerror (-rc));
8e18b6
+	if (rc < 0) {
8e18b6
+		g_debug ("failed to get seat for session %s [pid %u]: %s",
8e18b6
+			 sd_session, pid, strerror (-rc));
8e18b6
 		goto out;
8e18b6
 	}
8e18b6
 	seat = g_strdup (sd_seat);
8e18b6
-- 
8e18b6
2.21.0
8e18b6