diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2017-05-04 15:57:44 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2017-05-04 15:58:51 +0300 |
commit | d6acb738f3b28a2456d911dfbd69a140b3477967 (patch) | |
tree | eea14793615b7839ccf1c8209656b974319f7ab5 /src | |
parent | 54552ec21b7823e517df1c5be0dd1cfeb01f6eed (diff) | |
download | ConsoleKit2-d6acb738f3b28a2456d911dfbd69a140b3477967.tar.gz |
Turn a harmless warning message into a debug one
This way users don't have to see the warnings about not being
able to read a processes environment file.
Fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/79
Diffstat (limited to 'src')
-rw-r--r-- | src/ck-sysdeps-linux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ck-sysdeps-linux.c b/src/ck-sysdeps-linux.c index 1331cca..ac44fef 100644 --- a/src/ck-sysdeps-linux.c +++ b/src/ck-sysdeps-linux.c @@ -493,7 +493,10 @@ ck_unix_pid_get_env_hash (pid_t pid) &length, &error); if (! res) { - g_warning ("Couldn't read %s: %s", path, error->message); + /* This is pretty harmless, usually it means the process + * was short lived and we didn't get around to looking at + * it before it died. */ + g_debug ("Couldn't read %s: %s", path, error->message); g_error_free (error); goto out; } |