fix(globalmenu): downgrade D-Bus introspect timeout to debug
- Timeouts are expected for services without introspection support - _dbus_get_pid and _dbus_introspect now log at debug level - Cache already stores empty results; invalidation on service appear causes retries which is correct behavior
This commit is contained in:
1 file changed
+4
-4
@@ -110,8 +110,8 @@ def _dbus_introspect(bus, service: str, path: str, timeout: int) -> str:
|
|||||||
)
|
)
|
||||||
return res.get_child_value(0).get_string() if res else ""
|
return res.get_child_value(0).get_string() if res else ""
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(
|
logger.debug(
|
||||||
f"[service] res = bus.call_sync( service, path, 'org.freedesktop.DBus... failed: {e}"
|
f"[service] introspect {service}:{path} failed: {e}"
|
||||||
)
|
)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
@@ -131,8 +131,8 @@ def _dbus_get_pid(bus, service: str, timeout: int) -> int:
|
|||||||
)
|
)
|
||||||
return res.get_child_value(0).get_uint32() if res else 0
|
return res.get_child_value(0).get_uint32() if res else 0
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(
|
logger.debug(
|
||||||
f"[service] res = bus.call_sync( 'org.freedesktop.DBus', '/org/freede... failed: {e}"
|
f"[service] GetConnectionUnixProcessID for {service} failed: {e}"
|
||||||
)
|
)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user