-
Notifications
You must be signed in to change notification settings - Fork 220
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
Fix bug: BiT does not start (DBus exception NameHasNoOwner) #1335
Fix bug: BiT does not start (DBus exception NameHasNoOwner) #1335
Conversation
Also closes #1333 |
Is it the DBus exception that pollutes the JSON output? Something like this (quick & dirty handwritten)?
I don't understand enough about DBus, the dbus issue and how it is involved with BIT. And I don't need to. 😄 I trust you at this point. From my understanding the DBus problem isn't fixed yet. Am I right? Am I also right to say when it is fixed that the json output of If I'm wrong cut the rest. ;) IMHOThe "problem" with this PR is that it kind of "deactivates" the integration test That test is an integration test because it doesn't test one isolated function/method but a whole feature ( On the other hand we test the content of the output. That is a unit test because we can do this quit isolated. We only test the function ConsequenceI understand that the test |
The problem is the added log output of the captured exception (the exception itself is handled and does not bubble up).
For this unit test I guess yes, but the new unit tests that eg. combine
I think the integration test is still done in my PR because
I'd prefer to keep it running due to its integrative character.
There will be no better final D-Bus fix on the BiT client-side (a connection error may always happen) and BiT was (theoretically) and is (now with this PR more reliably) able to work without it. Opening a new issue for the real underlying problem sounds good: Our logging system pollutes the normal (non-logging) stdout output with logging output, we need a clear separation here In the new issue we could also request new features
|
@buhtzz
Thanks for tackling me ;-) I think I can change the unit test so that it uses JSON again by calling I also just saw that the custom logger function already do use Lines 48 to 53 in b4dd2d1
Interestingly the info and debug output is written to
https://docs.python.org/3/howto/logging.html I will update my PR! |
…al fix for #921). Also fixes Arch Linux build error (#1233). * Fix the BiT CLI side of the bug #921 * serviceHelper system D-Bus daemon issues are still under investigation * Fix Arch Linux build test and installation failure (#1233) * Add better documentation for installation on Arch using AUR package
As internal PoC I have just redirected our logger class output to I think this is worth another PR ;-) |
Great to hear. Btw: The replacement of |
Fix bug: BiT does not start with DBus exception NameHasNoOwner (partial fix for #921). Also fixes Arch Linux build error (#1233).