[tracker/sam/sandbox-fixes: 3/5] utils/sandbox: Be clearer when we are reusing a D-Bus session



commit fe35923cb1dd2de6d9fc9b5bc4cb889beae20eb2
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed May 22 12:42:10 2019 +0200

    utils/sandbox: Be clearer when we are reusing a D-Bus session
    
    This can cause errors if the session file is stale, so it needs to be
    obvious when this is happening.

 utils/sandbox/tracker-sandbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/utils/sandbox/tracker-sandbox.py b/utils/sandbox/tracker-sandbox.py
index 8848ed495..18706b1c8 100755
--- a/utils/sandbox/tracker-sandbox.py
+++ b/utils/sandbox/tracker-sandbox.py
@@ -388,8 +388,8 @@ def environment_set():
         debug('Using new D-Bus session with address "%s" with PID %d' %
               (dbus_session_address, dbus_session_pid))
     else:
-        debug('Using existing D-Bus session with address "%s" with PID %d' %
-              (dbus_session_address, dbus_session_pid))
+        debug('Using existing D-Bus session from file "%s" with address "%s" with PID %d' %
+              (dbus_session_file, dbus_session_address, dbus_session_pid))
 
     # Important, other subprocesses must use our new bus
     os.environ['DBUS_SESSION_BUS_ADDRESS'] = dbus_session_address


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]