Bug 409521 - kdeinit5 logging behaviour cannot be controlled after compilation
Summary: kdeinit5 logging behaviour cannot be controlled after compilation
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kinit
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.59.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-05 11:11 UTC by Serhiy
Modified: 2023-07-03 21:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serhiy 2019-07-05 11:11:53 UTC
SUMMARY


STEPS TO REPRODUCE
1. Install kdeinit5 from repositories where it's compiled without NDEBUG env variable (Kubuntu for example)
2. Start KDE session
3. Try finding a way to completely disable logging.

OBSERVED RESULT
https://cgit.kde.org/kinit.git/tree/src/kdeinit/kinit.cpp#n500

EXPECTED RESULT
Possibility to control logging behaviour after compilation.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04/Any
KDE Plasma Version: any
KDE Frameworks Version: any
Qt Version: any

ADDITIONAL INFORMATION
Related bug: 361621
Comment 1 Serhiy 2019-07-05 11:14:58 UTC
kdebugsettings turns off only part of these messages, check the provided link to source code to observe that it's impossible to control some logging after compilation.
Comment 2 Serhiy 2019-07-05 11:20:43 UTC
I have basic CPP knowledge, I can try working on this issue if someone will show me a good example of a solution on fprintf I've linked to.
Comment 3 Christoph Cullmann 2023-07-03 21:39:42 UTC
Fixed in master by removing kinit.