diff options
author | Richard Hughes <richard@hughsie.com> | 2019-08-13 10:59:52 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-08-13 11:00:29 +0100 |
commit | 513bfa4783d0a630c226ee40638ab346c0d1c229 (patch) | |
tree | 74f1802b63e33572950f1fffc9643661642f38f7 | |
parent | 8c956382760de35e577c1e01f73f26709a7a524f (diff) | |
download | colord-513bfa4783d0a630c226ee40638ab346c0d1c229.tar.gz |
trivial: Downgrade a trivial warning to a debug statement
This avoids spamming logs if system seats are set up incorrectly. If the user
is using virtual desktops it's highly unlikely they want the session devices
managed by colord.
-rw-r--r-- | src/cd-main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cd-main.c b/src/cd-main.c index ffcecb8..4a068d1 100644 --- a/src/cd-main.c +++ b/src/cd-main.c @@ -492,16 +492,16 @@ cd_main_get_seat_for_process (guint pid) /* get session the process belongs to */ rc = sd_pid_get_session (pid, &sd_session); if (rc < 0) { - g_warning ("failed to get session [pid %u]: %s", - pid, strerror (-rc)); + g_debug ("failed to get session [pid %u]: %s", + pid, strerror (-rc)); goto out; } /* get the seat the session is on */ rc = sd_session_get_seat (sd_session, &sd_seat); if (rc < 0) { - g_warning ("failed to get seat for session %s [pid %u]: %s", - sd_session, pid, strerror (-rc)); + g_debug ("failed to get seat for session %s [pid %u]: %s", + sd_session, pid, strerror (-rc)); goto out; } seat = g_strdup (sd_seat); |