solid/udisks2: Add support for categorized logging
ClosedPublic

Authored by bruns on Aug 26 2018, 6:18 PM.

Details

Summary

Allow users to enable/disable messages from the UDisks2 backend to aid
debugging issues seen only in specific configurations.

Debug levels of individual messages is unchanged, these likely needs
some further refinement.

Test Plan

Run:
./bin/solid-hardware5 listen
QT_LOGGING_RULES="org.kde.solid.*.debug=false" ./bin/solid-hardware5 listen
QT_LOGGING_RULES="org.kde.solid.*.debug=true" ./bin/solid-hardware5 listen
Plug/unplug USB storage device

-> first two invocations show same output as before
-> third invocation shows additional output, added/lost interfaces

Diff Detail

Repository
R245 Solid
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Aug 26 2018, 6:18 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 26 2018, 6:18 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Aug 26 2018, 6:18 PM
broulik accepted this revision.Aug 26 2018, 7:28 PM
broulik added a subscriber: broulik.

Thanks!

This revision is now accepted and ready to land.Aug 26 2018, 7:28 PM
This revision was automatically updated to reflect the committed changes.