summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2021-06-03 12:48:31 +0200
committerGitHub <noreply@github.com>2021-06-03 12:48:31 +0200
commitfb65a5eba0b857a9dd1a8f7a74e431849173e442 (patch)
tree3c229c28f305e336108a238bf594151a3576932e
parent520b862393f20efb30b58ba94c47ed85b8614064 (diff)
parent02d49b8a1beef4db7f6425a71b62d12f90805c6a (diff)
downloadConsoleKit2-fb65a5eba0b857a9dd1a8f7a74e431849173e442.tar.gz
Merge pull request #119 from TimB87/master
make consolekit2 not spam the syslog with an unimportant error
-rw-r--r--src/ck-sysdeps-linux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ck-sysdeps-linux.c b/src/ck-sysdeps-linux.c
index bdace2e..c0d07b6 100644
--- a/src/ck-sysdeps-linux.c
+++ b/src/ck-sysdeps-linux.c
@@ -561,7 +561,7 @@ ck_unix_pid_get_env (pid_t pid,
&length,
&error);
if (! res) {
- g_warning ("Couldn't read %s: %s", path, error->message);
+ g_debug ("Couldn't read %s: %s", path, error->message);
g_error_free (error);
goto out;
}
@@ -665,13 +665,13 @@ ck_unix_pid_get_login_session_id (pid_t pid,
&length,
&error);
if (! res) {
- g_warning ("Couldn't read %s: %s", path, error->message);
+ g_debug ("Couldn't read %s: %s", path, error->message);
g_error_free (error);
goto out;
}
if (contents[0] == '\0') {
- g_warning ("Couldn't read %s: empty file", path);
+ g_debug ("Couldn't read %s: empty file", path);
goto out;
}
@@ -683,7 +683,7 @@ ck_unix_pid_get_login_session_id (pid_t pid,
}
if (errno == ERANGE) {
- g_warning ("Couldn't read %s: %s", path, g_strerror (errno));
+ g_debug ("Couldn't read %s: %s", path, g_strerror (errno));
goto out;
}
@@ -819,7 +819,7 @@ linux_get_used_swap (void)
/* get memory data */
ret = g_file_get_contents (filename, &contents, NULL, &error);
if (!ret) {
- g_warning ("failed to open %s: %s", filename, error->message);
+ g_debug ("failed to open %s: %s", filename, error->message);
g_error_free (error);
goto out;
}
@@ -889,7 +889,7 @@ linux_supports_sleep_state (const gchar *state)
g_debug ("excuting command: %s", command);
ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
if (!ret) {
- g_warning ("failed to run script: %s", error->message);
+ g_debug ("failed to run script: %s", error->message);
g_error_free (error);
goto out;
}