mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
change default log level for the library to PA_LOG_ERROR to avoid spamming to stderr more often
This commit is contained in:
parent
086fa95407
commit
1acf394356
2 changed files with 4 additions and 4 deletions
|
|
@ -348,6 +348,9 @@ int main(int argc, char *argv[]) {
|
||||||
int autospawn_fd = -1;
|
int autospawn_fd = -1;
|
||||||
pa_bool_t autospawn_locked = FALSE;
|
pa_bool_t autospawn_locked = FALSE;
|
||||||
|
|
||||||
|
pa_log_set_maximal_level(PA_LOG_INFO);
|
||||||
|
pa_log_set_ident("pulseaudio");
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__OPTIMIZE__)
|
#if defined(__linux__) && defined(__OPTIMIZE__)
|
||||||
/*
|
/*
|
||||||
Disable lazy relocations to make usage of external libraries
|
Disable lazy relocations to make usage of external libraries
|
||||||
|
|
@ -410,9 +413,6 @@ int main(int argc, char *argv[]) {
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
pa_init_i18n();
|
pa_init_i18n();
|
||||||
|
|
||||||
pa_log_set_maximal_level(PA_LOG_INFO);
|
|
||||||
pa_log_set_ident("pulseaudio");
|
|
||||||
|
|
||||||
conf = pa_daemon_conf_new();
|
conf = pa_daemon_conf_new();
|
||||||
|
|
||||||
if (pa_daemon_conf_load(conf, NULL) < 0)
|
if (pa_daemon_conf_load(conf, NULL) < 0)
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
static char *log_ident = NULL, *log_ident_local = NULL;
|
static char *log_ident = NULL, *log_ident_local = NULL;
|
||||||
static pa_log_target_t log_target = PA_LOG_STDERR;
|
static pa_log_target_t log_target = PA_LOG_STDERR;
|
||||||
static pa_log_func_t user_log_func = NULL;
|
static pa_log_func_t user_log_func = NULL;
|
||||||
static pa_log_level_t maximal_level = PA_LOG_NOTICE;
|
static pa_log_level_t maximal_level = PA_LOG_ERROR;
|
||||||
|
|
||||||
#ifdef HAVE_SYSLOG_H
|
#ifdef HAVE_SYSLOG_H
|
||||||
static const int level_to_syslog[] = {
|
static const int level_to_syslog[] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue