mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
log: Fix compilation error on non-systemd systems
Commit 262bdae0330e used symbols which are only available if systemd support was compiled in. Fix by using the appropriate #ifdef guards. Also document the resulting PULSE_LOG_JOURNAL environment variable behavior if systemd journal support was not compiled in. [Diwic: changed wording slightly.] Reported-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
parent
ac5b7b8d5c
commit
5d4905ec31
2 changed files with 4 additions and 1 deletions
|
|
@ -294,10 +294,12 @@ static void init_defaults(void) {
|
|||
target_override_set = true;
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSTEMD_JOURNAL
|
||||
if (getenv(ENV_LOG_JOURNAL)) {
|
||||
target_override = PA_LOG_JOURNAL;
|
||||
target_override_set = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((e = getenv(ENV_LOG_LEVEL))) {
|
||||
maximum_level_override = (pa_log_level_t) atoi(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue