|
|
65878a |
From bcbb894a709f56ac0bccf7e5edfd59e39e8ec800 Mon Sep 17 00:00:00 2001
|
|
|
65878a |
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
65878a |
Date: Wed, 14 May 2014 15:13:43 +0200
|
|
|
65878a |
Subject: [PATCH] core: print debug instead of error message
|
|
|
65878a |
|
|
|
65878a |
In case that session scope is in some other state than SCOPE_RUNNING or
|
|
|
65878a |
SCOPE_ABANDONED we will not print error message. It might be the case
|
|
|
65878a |
that scope is in other state because systemd realized that scope is
|
|
|
65878a |
empty before dispatching dbus call from pam hook. Or system is going
|
|
|
65878a |
down and stop job is runnig for the scope and changed scope state to
|
|
|
65878a |
SCOPE_STOP_SIGTERM or SCOPE_STOP_SIGKILL.
|
|
|
65878a |
|
|
|
65878a |
(cherry picked from commit f517790db5277fa71d6ae3617244f1acc4b62572)
|
|
|
65878a |
|
|
|
65878a |
Resolves: #1105608
|
|
|
65878a |
---
|
|
|
65878a |
src/core/dbus-scope.c | 2 +-
|
|
|
65878a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
65878a |
|
|
|
65878a |
diff --git a/src/core/dbus-scope.c b/src/core/dbus-scope.c
|
|
|
65878a |
index 58dd9ff..71d6921 100644
|
|
|
65878a |
--- a/src/core/dbus-scope.c
|
|
|
65878a |
+++ b/src/core/dbus-scope.c
|
|
|
65878a |
@@ -76,7 +76,7 @@ DBusHandlerResult bus_scope_message_handler(Unit *u, DBusConnection *c, DBusMess
|
|
|
65878a |
|
|
|
65878a |
r = scope_abandon(s);
|
|
|
65878a |
if (r < 0)
|
|
|
65878a |
- log_error("Failed to mark scope %s as abandoned : %s", UNIT(s)->id, strerror(-r));
|
|
|
65878a |
+ log_debug("Failed to mark scope %s as abandoned : Scope is not running", UNIT(s)->id);
|
|
|
65878a |
|
|
|
65878a |
reply = dbus_message_new_method_return(message);
|
|
|
65878a |
if (!reply)
|