Direct Rainbow to capture activity stdio output.
This commit is contained in:
parent
7634b8f915
commit
9c5755d85a
@ -191,9 +191,11 @@ class ActivityCreationHandler(gobject.GObject):
|
|||||||
system_bus = dbus.SystemBus()
|
system_bus = dbus.SystemBus()
|
||||||
factory = system_bus.get_object(_RAINBOW_SERVICE_NAME,
|
factory = system_bus.get_object(_RAINBOW_SERVICE_NAME,
|
||||||
_RAINBOW_ACTIVITY_FACTORY_PATH)
|
_RAINBOW_ACTIVITY_FACTORY_PATH)
|
||||||
|
stdio_paths = {'stdout': '/logs/stdout', 'stderr': '/logs/stderr'}
|
||||||
factory.CreateActivity(
|
factory.CreateActivity(
|
||||||
self._service_name,
|
self._service_name,
|
||||||
self._handle.get_dict(),
|
self._handle.get_dict(),
|
||||||
|
stdio_paths,
|
||||||
timeout=120 * DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND,
|
timeout=120 * DBUS_PYTHON_TIMEOUT_UNITS_PER_SECOND,
|
||||||
reply_handler=self._create_reply_handler,
|
reply_handler=self._create_reply_handler,
|
||||||
error_handler=self._create_error_handler,
|
error_handler=self._create_error_handler,
|
||||||
|
Loading…
Reference in New Issue
Block a user