Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
rtkit.30133
rtkit-silent-debug-messages-by-default.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rtkit-silent-debug-messages-by-default.patch of Package rtkit.30133
From: Jean Delvare <jdelvare@suse.de> Subject: rtkit-daemon: Don't log debug messages by default References: bsc#1206745 The rtkit-daemon service is a lot more verbose than other services when it doesn't have anything to do. Stop logging the debug messages by default to avoid flooding the system log. This addresses the following upstream issue: https://github.com/heftig/rtkit/issues/22 --- rtkit-daemon.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- a/rtkit-daemon.c +++ b/rtkit-daemon.c @@ -189,6 +189,9 @@ static bool canary_demote_unknown = FALS /* Log to stderr? */ static bool log_stderr = FALSE; +/* Also log debugging messages? */ +static bool log_debug = FALSE; + /* Scheduling policy to use */ static int sched_policy = SCHED_RR; @@ -1928,6 +1931,7 @@ enum { ARG_CANARY_DEMOTE_UNKNOWN, ARG_CANARY_REFUSE_SEC, ARG_STDERR, + ARG_DEBUG, ARG_INTROSPECT }; @@ -1957,6 +1961,7 @@ static const struct option long_options[ { "canary-demote-unknown", no_argument, 0, ARG_CANARY_DEMOTE_UNKNOWN }, { "canary-refuse-sec", required_argument, 0, ARG_CANARY_REFUSE_SEC }, { "stderr", no_argument, 0, ARG_STDERR }, + { "debug", no_argument, 0, ARG_DEBUG }, { "introspect", no_argument, 0, ARG_INTROSPECT }, { NULL, 0, 0, 0} }; @@ -1985,6 +1990,7 @@ static void show_help(const char *exe) { " --version Show version\n\n" "OPTIONS:\n" " --stderr Log to STDERR in addition to syslog\n" + " --debug Also log debugging mssages\n" " --user-name=USER Run daemon as user (%s)\n\n" " --scheduling-policy=(RR|FIFO) Choose scheduling policy (%s)\n" " --our-realtime-priority=[%i..%i] Realtime priority for the daemon (%u)\n" @@ -2274,6 +2280,10 @@ static int parse_command_line(int argc, log_stderr = TRUE; break; + case ARG_DEBUG: + log_debug = TRUE; + break; + case ARG_INTROSPECT: fputs(INTROSPECT_XML, stdout); *ret = 0; @@ -2303,6 +2313,9 @@ static int parse_command_line(int argc, return -1; } + if (!log_debug) + setlogmask(LOG_UPTO(LOG_INFO)); + assert(our_realtime_priority >= (unsigned) sched_get_priority_min(sched_policy)); assert(our_realtime_priority <= (unsigned) sched_get_priority_max(sched_policy));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor