-
Notifications
You must be signed in to change notification settings - Fork 247
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
A set of patches to sanitize logger code a little bit. #5535
Conversation
defined in debug.c from util.h to debug.h
This patch gets rid of: - 'debug-to-files', 'debug-to-stderr' command line options - undocumented 'debug_to_files' sssd.conf option and makes '--logger' command line option the only "source of truth" for logger type configuration. Those options were not used much anyway but made precedence logic obscure in case contradictory settings were used. :config: Long time deprecated and undocumented 'debug_to_files' option was removed. :relnote: 'debug-to-files', 'debug-to-stderr' command line and undocumented 'debug_to_files' config options were removed.
This makes code less error-prone reducing amount of function calls required for debug initialization.
and moved rarely used / "private" functions to the bottom.
since is it is only used in tests.
This makes code less error-prone reducing amount of function calls required for debug initialization.
aad2ebd
to
5dcd0dc
Compare
I went trough the patches, looks good to me. I will run few tests before acking. Thanks |
Just for the record: Testing on my fedora shows that the patch as is prevents sssd to log into files in our current setup. Thanks |
if its value specified explictly
Thanks. Updated. |
Thanks for the patch |
Pushed PR: #5535
|
This PR forgot to change -f in src/sysv/gentoo/sssd.in so sssd now fails to start as -f option is not recognized. |
@joakim-tjernlund , do we really need distribution-specific config in upstream repo? @scabrero , do you use https://github.com/SSSD/sssd/blob/master/src/sysv/SUSE/sssd.in somehow? |
Hi, I don't think we need dist. specific ones but there are variables in there that needs processing. |
To be clear, you could have a generic openrc script and a generic SYSV shell script |
Is this file really used in Gentoo? But I'm really not familiar with Gentoo packaging thus asking.
Yes, this makes sense. |
Yes, you can choose systemd or openrc at build time(Gentoo is a source based dist so every SW pkg are built locally) |
Ok, so probably we could rename |
No we don't use it. We are using src/sysv/systemd/*. |
see #5535 (comment) Reviewed-by: Pavel Březina <pbrezina@redhat.com>
see SSSD#5535 (comment) Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Most significant changes are:
and
sss_set_logger()
andopen_debug_file()
incorporated into DEBUG_INIT APIThis PR also resolves: #5488