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