-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Never log failure to retrieve an optional property #541
Conversation
4bfca5a
to
792cf2d
Compare
Mh, I was thinking on whether doing this for a long time, but I always decided not to do it, since this is not an extension bug but rather applications issue that implement poorly the protocol. That's flawed for many reasons anyways, but that's not an excuse not to be compliant with basic dbus expectations. Also I'm still curious why people is bothered by journal debug infos :-D, however if there's much request I can re-consider the decision.
On this, though, I think it's still better to filter the generic error instead, because at least would allow us not to ignore the non- |
Chromium and Electron apps do not implement the IconAccessibleDesc property and reply to the Get() method with a generic org.freedesktop.DBus.Error.Failed Ignore all DBus errors for optional properties. Fixes: ubuntu#534 LP: #2064698
792cf2d
to
3103675
Compare
It's a full stack trace, it takes up something like 80% of my journal because it's logged multiple times a minute... It is also logged at LOG_ERR priority which makes it more than debug infos
Good point. How about this catch-all |
BTW we can totally send a patch to chromium, but it wouldn't start rolling into Electron apps before 2026 🤣 |
Ahah, well... If you've some spare time, it wouldn't too bad to fix electron, but in the mean time that's fine to do what you suggest.
Yeah, you can filter by using So that we can still see the results when |
Ah actually gnome-shell-extension-appindicator/appIndicator.js Lines 314 to 322 in 19ee5b0
Weird that you say "silently ignore it" and then throw 🤔 |
throwing is needed to ensure that the error is propagated, then it's up to the users of such function to handle it or now, and now we've decided to fully ignore it, but it's something that is always better to do in a leaf of a call stack (so that we don't miss things). |
Chromium and Electron apps do not implement the IconAccessibleDesc property and reply to the Get() method with a generic
org.freedesktop.DBus.Error.Failed
Rather than adding the generic error to the list of allowed errors, remove the filtering on the error type altogether.
Fixes: #534
LP: #2064698